require.mx('mxjs/base/utilities/binning.js');
Convenience functions for binning values.
Status | Name |
---|---|
Object binValues
(
Array values,
Object settings
)
|
|
calculateBinCentres
(
Object binnedValues
)
|
|
calculateBinStarts
(
Object binnedValues
)
|
|
generateHistogram
(
Table outTable,
Array values,
Object settings
)
Generate X/Y positions for a histogram of the given values, and write them to a table. The settings object uses the following properties:
|
Parameters:
Object
binnedValues - results from binValues().Parameters:
Object
binnedValues - results from binValues().Generate X/Y positions for a histogram of the given values, and write them to a table. The settings object uses the following properties:
function(binCount, totalCount) { return binCount / totalCount; }
. If this function is not specified, the number of values in the current bin will be used as the Y value.