public final class EuclideanDistance extends java.lang.Object implements HistogramCorrelation
Constructor and Description |
---|
EuclideanDistance() |
Modifier and Type | Method and Description |
---|---|
double |
correlation(Histogram thisHistogam,
int displacement,
Histogram otherHistogram)
The implementation of a histogram correlation or distance measure.
|
public double correlation(Histogram thisHistogam, int displacement, Histogram otherHistogram)
HistogramCorrelation
correlation
in interface HistogramCorrelation
thisHistogam
- the first histogramdisplacement
- the value to displace the otherHistogram (e.g. for optimal
correlation, minimum distance between the two)otherHistogram
- the second (not displaced) histogram