﻿ Bhattacharyya.Distance Method (Double[], Double[,], Double, Double[], Double[,], Double) # BhattacharyyaAddLanguageSpecificTextSet("LSTE88B4B54_0?cpp=::|nu=.");Distance Method (AddLanguageSpecificTextSet("LSTE88B4B54_1?cpp=array&lt;");DoubleAddLanguageSpecificTextSet("LSTE88B4B54_2?cpp=&gt;|vb=()|nu=[]");, AddLanguageSpecificTextSet("LSTE88B4B54_3?cpp=array&lt;");DoubleAddLanguageSpecificTextSet("LSTE88B4B54_4?cpp=,2&gt;|vb=(,)|nu=[,]");, Double, AddLanguageSpecificTextSet("LSTE88B4B54_5?cpp=array&lt;");DoubleAddLanguageSpecificTextSet("LSTE88B4B54_6?cpp=&gt;|vb=()|nu=[]");, AddLanguageSpecificTextSet("LSTE88B4B54_7?cpp=array&lt;");DoubleAddLanguageSpecificTextSet("LSTE88B4B54_8?cpp=,2&gt;|vb=(,)|nu=[,]");, Double)

Bhattacharyya distance between two Gaussian distributions.

Namespace:  Accord.Math.Distances
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0 Syntax
```public double Distance(
double[] meanX,
double[,] covX,
double lnDetCovX,
double[] meanY,
double[,] covY,
double lnDetCovY
)```

#### Parameters

meanX
Type: SystemDouble
Mean for the first distribution.
covX
Type: SystemDouble
Covariance matrix for the first distribution.
lnDetCovX
Type: SystemDouble
The logarithm of the determinant for the covariance matrix of the first distribution.
meanY
Type: SystemDouble
Mean for the second distribution.
covY
Type: SystemDouble
Covariance matrix for the second distribution.
lnDetCovY
Type: SystemDouble
The logarithm of the determinant for the covariance matrix of the second distribution.

#### Return Value

Type: Double
The Bhattacharyya distance between the two distributions. See Also