Callable
- __call(values: T[], index?: number): Bin<T>[]
-
Parameters
-
values: T[]
-
Optional index: number
Returns Bin<T>[]
Methods
bins
-
Returns function
-
- (range: [number, number], values: T[], index: number): number[]
-
Parameters
-
range: [number, number]
-
values: T[]
-
index: number
Returns number[]
-
Parameters
-
Parameters
-
Parameters
-
func: function
-
- (range: [number, number], values: T[], index: number): number[]
-
Parameters
-
range: [number, number]
-
values: T[]
-
index: number
Returns number[]
frequency
- frequency(): boolean
- frequency(frequency: boolean): Histogram<T>
-
Returns boolean
-
Parameters
range
- range(): function
- range(range: function): Histogram<T>
-
Returns function
-
- (values: T[], index: number): [number, number]
-
Parameters
-
values: T[]
-
index: number
Returns [number, number]
-
Parameters
-
range: function
-
- (values: T[], index: number): [number, number]
-
Parameters
-
values: T[]
-
index: number
Returns [number, number]
value
- value(): function
- value(value: function): Histogram<T>
-
Returns function
-
- (datum: T, index: number): number
-
Parameters
Returns number
-
Parameters
-
value: function
-
- (datum: T, index: number): number
-
Parameters
Returns number