Click or drag to resize
Accord.NET (logo)

BhattacharyyaDistance Method (Double, Double, Double, Double, Double, 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
)
Request Example View Source

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