API / geotoolkit / controls / util / histogram / HistogramUtils / HistogramUtils
histogram.HistogramUtils.HistogramUtils
Defines an utility class for Histogram
Methods
▸ Static calculateDistribution(values, options?): DistributionOut
Calculate the distribution for a histogram, including frequencies and accumulated frequencies. This method processes input values and applies optional parameters to customize the binning process.
| Name | Type | Description |
|---|---|---|
values | number[] | INumericalDataSeries | array of input values or data series for which the histogram distribution will be calculated. |
Optional options | DistributionOptions | Optional parameters for customizing the histogram distribution calculation, such as the number of bins, minimum/maximum values, and binning behavior. |
calculated frequencies
▸ Static calculateMinMaxValues(values): Object
Calculates the minimum and maximum values, as well as the number of valid samples (excluding NaN values).
| Name | Type | Description |
|---|---|---|
values | number[] | INumericalDataSeries | An array of numeric values or data series with numeric values. |
Object
An object containing the minimum value, maximum value, and the count of valid samples.
| Name | Type |
|---|---|
maxValue | number |
minValue | number |
samplesCount | number |
▸ Static calculateNumberOfBins(values, minValue?, maxValue?): number
Calculates the optimal number of bins for a given set of raw values.
| Name | Type | Description |
|---|---|---|
values | number[] | INumericalDataSeries | An array of numeric values or data series. |
Optional minValue | number | The minimum value. If not provided, it will be recalculated from the raw values. |
Optional maxValue | number | The maximum value. If not provided, it will be recalculated from the raw values. |
number
The calculated number of bins.