BinNumber Module

Compute the number of bins for a histogram

Functions and values

Function or value Description

fromBandwidth (min, max) bw

Full Usage: fromBandwidth (min, max) bw

Parameters:
    min : float -
    max : float -
    bw : float -

Returns: float

Compute the number of bins from bandwidth

min : float

max : float

bw : float

Returns: float

Example

riceRule ndataLength

Full Usage: riceRule ndataLength

Parameters:
    ndataLength : float -

Returns: float

The Rice Rule is presented as a simple alternative to Sturges's rule.

ndataLength : float

Returns: float

Example

sqrt ndataLength

Full Usage: sqrt ndataLength

Parameters:
    ndataLength : float -

Returns: float

Square-root choice

ndataLength : float

Returns: float

Example

sturges ndataLength

Full Usage: sturges ndataLength

Parameters:
    ndataLength : float -

Returns: float

Sturges' formula is derived from a binomial distribution and implicitly assumes an approximately normal distribution.

ndataLength : float

Returns: float

Example