Class AbstractEqualWidthBinningAlgorithm

    • Constructor Detail

      • AbstractEqualWidthBinningAlgorithm

        public AbstractEqualWidthBinningAlgorithm()
    • Method Detail

      • doGenerateBins

        protected <T> List<Bin<T>> doGenerateBins​(List<Binnable<T>> objects,
                                                  int numBins)
        Generates equal-width bins. Determines the min/max from the objects.
        Parameters:
        numBins - the number of equal-width bins to generate
        Returns:
        the bins
      • doGenerateBins

        protected <T> List<Bin<T>> doGenerateBins​(com.github.fracpete.javautils.struct.Struct2<Double,​Double> minMax,
                                                  int numBins)
        Generates equal-width bins.
        Parameters:
        minMax - the minimum/maximum to use
        numBins - the number of equal-width bins to generate
        Returns:
        the bins
      • doGenerateBins

        protected <T> List<Bin<T>> doGenerateBins​(double min,
                                                  double max,
                                                  int numBins)
        Generates equal-width bins.
        Parameters:
        min - the minimum to use
        max - the maximum to use
        numBins - the number of equal-width bins to generate
        Returns:
        the bins
      • doGenerateBins

        protected <T> List<Bin<T>> doGenerateBins​(List<Binnable<T>> objects,
                                                  double binWidth)
        Generates bins with the specified width. Determines the min/max from the objects.
        Parameters:
        binWidth - the bin width
        Returns:
        the bins
      • doGenerateBins

        protected <T> List<Bin<T>> doGenerateBins​(com.github.fracpete.javautils.struct.Struct2<Double,​Double> minMax,
                                                  double binWidth)
        Generates bins with the specified width.
        Parameters:
        minMax - the minimum/maximum to use
        binWidth - the bin width
        Returns:
        the bins
      • doGenerateBins

        protected <T> List<Bin<T>> doGenerateBins​(double min,
                                                  double max,
                                                  double binWidth)
        Generates bins with the specified width.
        Parameters:
        min - the minimum to use
        max - the maximum to use
        binWidth - the bin width
        Returns:
        the bins