Class FixedBinsHistogram<R>

  • All Implemented Interfaces:
    Histogram<R>

    public class FixedBinsHistogram<R>
    extends java.lang.Object
    implements Histogram<R>
    A class that models a standard histogram. A histogram consists of a number of equally sized and contiguous bins that cover a certain interval. Values that are added to the histogram are classified into their corresponding bin, which means that the count of the bin is incremented. Values that fall outside the interval, are classified into the underflow resp. overflow bins.
    • Constructor Detail

      • FixedBinsHistogram

        public FixedBinsHistogram​(int nbins,
                                  double min,
                                  double max,
                                  Filter<R> filter)
    • Method Detail

      • addValue

        public void addValue​(R row,
                             double value)
      • getDensity

        public int getDensity​(int index)
        Specified by:
        getDensity in interface Histogram<R>
      • getUnderflowBin

        public int getUnderflowBin()
      • getOverflowBin

        public int getOverflowBin()
      • getBin

        public int getBin​(double value)
        Specified by:
        getBin in interface Histogram<R>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object