Click or drag to resize
Accord.NET (logo)

BhattacharyyaDistance Method (GeneralDiscreteDistribution, GeneralDiscreteDistribution)

Bhattacharyya distance between two histograms.

Namespace:  Accord.Math.Distances
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public double Distance(
	GeneralDiscreteDistribution x,
	GeneralDiscreteDistribution y
)
Request Example View Source

Parameters

x
Type: Accord.Statistics.Distributions.UnivariateGeneralDiscreteDistribution
The first histogram.
y
Type: Accord.Statistics.Distributions.UnivariateGeneralDiscreteDistribution
The second histogram.

Return Value

Type: Double
The Bhattacharyya between the two histograms.

Implements

IDistanceT, UDistance(T, U)
See Also