bhattacharyya {immunoClust} | R Documentation

## Bhattacharyya Distance, Coefficient and Probability

### Description

Calculates the Bhattacharyya Distance, Coefficient and Probability

### Usage

    bhattacharyya.prob(gM,gS, cM,cS, alpha=1)

    bhattacharyya.dist(gM, gS, cM, cS)

    bhattacharyya.coeff(gM,gS, cM,cS, alpha=1)

### Arguments

`gM, cM` | `P`-dimensional vector of cluster means
`gS, cS` | `PxP`-dimensinal matrix of clusters co-variances
`alpha` | A value between 0 and 1 used to balance the bhattacharrya probabilities, coefficients calculated with either the full covariance matrices or using only the diagonal elements of it.

### Details

Calculates the bhattacharyya probabilty, distance or coefficient of the clusters, i.e. Gaussian distributions. Distance and Coefficient are symetric for both clusters, whereas the probabity is not.

### Value

The Bhattacharyya probability, distance or coefficient

### Author(s)

Till Sörensen till-antoni.soerensen@charite.de

### Examples

    data(dat.meta)

    prob <- bhattacharyya.prob(prop(dat.meta,"M",c()), prop(dat.meta,"S"),
        mu(dat.meta,1), sigma(dat.meta,1))
    dist <- bhattacharyya.dist(prop(dat.meta,"M",c()), prop(dat.meta,"S"),
        mu(dat.meta,1), sigma(dat.meta,1))
    coeff <- bhattacharyya.coeff(prop(dat.meta,"M",c()), prop(dat.meta,"S"),
        mu(dat.meta,1), sigma(dat.meta,1))

[Package immunoClust version 1.24.0 Index]