be.hogent.tarsos.util.histogram
Interface HistogramCorrelation

All Known Implementing Classes:
BhattacharyaDistance, CityBlockDistance, CrossCorrelation, EuclideanDistance, Intersection

public interface HistogramCorrelation

Defines an implementation of a histogram correlation or distance measure.

Author:
Joren Six

Method Summary
 double correlation(Histogram thisHistogram, int displacement, Histogram otherHistogram)
          The implementation of a histogram correlation or distance measure.
 void plotCorrelation(Histogram thisHistogram, int displacement, Histogram otherHistogram, java.lang.String fileName, java.lang.String title)
          Plots two histograms and the intersection between the two.
 

Method Detail

correlation

double correlation(Histogram thisHistogram,
                   int displacement,
                   Histogram otherHistogram)
The implementation of a histogram correlation or distance measure.

Parameters:
thisHistogram - the first histogram
displacement - the value to displace the otherHistogram (e.g. for optimal correlation, minimum distance between the two)
otherHistogram - the second (not displaced) histogram
Returns:
the correlation between a histogram and a displaced histogram

plotCorrelation

void plotCorrelation(Histogram thisHistogram,
                     int displacement,
                     Histogram otherHistogram,
                     java.lang.String fileName,
                     java.lang.String title)
Plots two histograms and the intersection between the two.

Parameters:
thisHistogram - the first histogram
displacement - the value to displace the otherHistogram (e.g. for optimal correlation between the two)
otherHistogram - the second (not displaced) histogram
fileName - Where to save the plot.
title - The title of the plot.