Expand description
Library for one-dimensional data classification and simple statistics, especially methods used for cartographic purposes such as “quantiles breaks” or “Jenks natural breaks”.
This library allows to computed break values according to a few methods (listed in
the Classification
Enum).
Theses break values can be computed by creating a new BoundsInfo
struct.
If the input values are already sorted and you don’t care about error checking
you can directly use the get_{jenks|quantiles|etc...}_breaks
functions.
This library also provide a few basic statistical functionnalities, allowing to compute mean value, kurtosis value, standard deviation, variance, root of mean square, etc.
Modules§
- stats
- Basic statistical functionnalities: mean, standard deviation, kurtosis, variance, etc.
Structs§
- Bounds
Info - A struct containing the bounds computed at its creation and some basic statistical informations : minimum, maximum and mean value.
Enums§
- Classification
- The various type of classification methods availables.
Functions§
- get_
arithmetic_ breaks - Compute the “arithmetic progression” breaks on a list of sorted values.
- get_
equal_ interval - Compute the equal interval breaks on a list of sorted values.
- get_
head_ tail_ breaks - Compute the “Head-Tail” breaks on a list of sorted values (to be used on heavily right skewed distributions).
- get_
jenks_ breaks - Compute the “Natural Breaks” on a list of sorted values, based on Jenks optimization.
- get_
quantiles - Compute the quantiles breaks on a list of sorted values.
- get_
tail_ head_ breaks - Compute the “Tail-Head” breaks on a list of sorted values (its actually just the inverse of the Head-Tail method, to be used on heavily left skewed distributions).