Class BucketHistogram
java.lang.Object
cz.fidentis.analyst.gui.elements.histogram.utils.BucketHistogram
Class that implements bucket histogram.
-
Constructor Summary
ConstructorsConstructorDescriptionBucketHistogram
(int bucketCount) Create a new BucketHistogram that will usebucketCount
buckets. -
Method Summary
Modifier and TypeMethodDescriptionReturn buckets.double
double
void
setValues
(Collection<Double> values) Set values from which the bucket histogram will be calculated.
-
Constructor Details
-
BucketHistogram
public BucketHistogram(int bucketCount) Create a new BucketHistogram that will usebucketCount
buckets. The number of buckets cannot be changed later.- Parameters:
bucketCount
- number of buckets to be used
-
-
Method Details
-
setValues
Set values from which the bucket histogram will be calculated.- Parameters:
values
- values- See Also:
-
getBuckets
Return buckets. Integer at indexi
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 lastsetValues(Collection)
call
-
getMaxValue
public double getMaxValue()- Returns:
- maximum value from
values
used in the lastsetValues(Collection)
call
-