Class BucketHistogram

java.lang.Object
cz.fidentis.analyst.gui.elements.histogram.utils.BucketHistogram

public class BucketHistogram extends Object
Class that implements bucket histogram.
  • Constructor Details

    • BucketHistogram

      public BucketHistogram(int bucketCount)
      Create a new BucketHistogram that will use bucketCount buckets. The number of buckets cannot be changed later.
      Parameters:
      bucketCount - number of buckets to be used
  • Method Details

    • setValues

      public void setValues(Collection<Double> values)
      Set values from which the bucket histogram will be calculated.
      Parameters:
      values - values
      See Also:
    • getBuckets

      public List<Integer> getBuckets()
      Return buckets. Integer at index i is equal to number of values that belong to that bucket range.
      Returns:
      list of buckets
      See Also:
    • getMinValue

      public double getMinValue()
      Returns:
      minimum value from values used in the last setValues(Collection) call
    • getMaxValue

      public double getMaxValue()
      Returns:
      maximum value from values used in the last setValues(Collection) call