Class BhattacharyyaHistoComparator

  • All Implemented Interfaces:
    IHistoComparator

    public class BhattacharyyaHistoComparator
    extends BaseHistoComparator
    implements IHistoComparator
    Computes the Bhattacharyya distance between two histograms.
    Author:
    Dustin Kempton, Data Mining Lab, Georgia State University
    • Constructor Detail

      • BhattacharyyaHistoComparator

        public BhattacharyyaHistoComparator()
    • Method Detail

      • compareHist

        public float compareHist​(int[] hist1,
                                 int[] hist2)
        Description copied from interface: IHistoComparator
        Compares two single dimensional histograms and returns the value computed by their comparison.
        Specified by:
        compareHist in interface IHistoComparator
        Parameters:
        hist1 - The first histogram in the comparison.
        hist2 - The second histogram in the comparison.
        Returns:
        The value computed by the comparison of the two input histograms.
      • compareHists

        public float compareHists​(int[][] hists1,
                                  int[][] hists2)
        Description copied from interface: IHistoComparator
        Compares two multi-dimensional histograms and returns the value computed by their comparison.
        Specified by:
        compareHists in interface IHistoComparator
        Parameters:
        hists1 - The first histogram in the comparison.
        hists2 - The second histogram in the comparison.
        Returns:
        The value computed by the comparison of the two input histograms.