Constructor
new Aggregation(column)
- Description:
The class responsible for aggregating functions on a column
- Source:
Parameters:
Name | Type | Description |
---|---|---|
column |
Array | The column to perform aggregation functions for |
Classes
Methods
count() → {number}
- Description:
The number of elements present in the column
- Source:
Returns:
The count of the column
- Type
- number
max() → {number}
- Description:
The maximum value of the column
- Source:
Returns:
The maximum value of the column
- Type
- number
mean() → {number}
- Description:
The mean of the column
- Source:
Returns:
The mean value of the column
- Type
- number
median() → {number}
- Description:
The median of the column
- Source:
Returns:
The median value of the column
- Type
- number
min() → {number}
- Description:
The minimum value of the column
- Source:
Returns:
The minimum value of the column
- Type
- number
percentile(percentile) → {number}
- Description:
Get the number that is at the given percentile based on the given column
- Source:
Parameters:
Name | Type | Description |
---|---|---|
percentile |
number | The percentile of the data to get |
Returns:
A number that is at the given percentile based on the column
- Type
- number
range() → {number}
- Description:
The range of the column
- Source:
Returns:
The range of the column
- Type
- number
stdp() → {number}
- Description:
Population Standard Deviation. Use this if the column is the population.
- Source:
Returns:
The population standard deviation of the column
- Type
- number
stds() → {number}
- Description:
Sample Standard Deviation of the column. Use this to estimate the variability for the population this sample is a subset of
- Source:
Returns:
The sample standard deviation of the column
- Type
- number