Binning Module

Functions and values

Function or value Description

bin bandwidth data

Full Usage: bin bandwidth data

Parameters:
    bandwidth : float - Bandwidth of the resulting bins.
    data : seq<float> - float data

Returns: Map<float, seq<float>>

Sorts the data into bins with given bandwidth. Bin intervals are half open excluding the upper border: [lower,upper)

bandwidth : float

Bandwidth of the resulting bins.

data : seq<float>

float data

Returns: Map<float, seq<float>>
OverflowException Thrown when the input sequence contains nan.
DivideByZeroException Thrown when the bandwidth is set to 0.

binBy projection bandwidth data

Full Usage: binBy projection bandwidth data

Parameters:
    projection : 'a -> float - Function to isolate the feature to bin by.
    bandwidth : float - Bandwidth of the resulting bins.
    data : seq<'a> - Data of type a with a float field to bin by.

Returns: Map<float, seq<'a>>

Sorts the data into bins with given bandwidth. Bin intervals are half open excluding the upper border: [lower,upper)

projection : 'a -> float

Function to isolate the feature to bin by.

bandwidth : float

Bandwidth of the resulting bins.

data : seq<'a>

Data of type a with a float field to bin by.

Returns: Map<float, seq<'a>>
OverflowException Thrown when the input sequence contains nan.
DivideByZeroException Thrown when the bandwidth is set to 0.