Variable arithmeticMeanConst
arithmeticMean: (values: number[], defaultValue?: number) => number
Type declaration
- (values: number[], defaultValue?: number): number
Parameters
- values: number[]
Optional
defaultValue: number
Returns number
average of all values
Arithmetic mean (average) of all values in the array If the array is empty, it returns 0 or the defaultValue