#skew #square-root #no-std #byte-slice #standard-deviation #pearson

no-std approx_pearson_skew

Pearson second skew coefficient, using micromath square root approximation

1 unstable release

0.1.0 Apr 18, 2021

#17 in #square-root

Apache-2.0 OR MIT

17KB
294 lines

Approximate Shannon Entropy

A rust library to calculate the approximate Pearson Median Skew of a slice.

The median algorithm used is a O(1) size but O(nk) time complexity with worst case O(n^2), due to the immutable slice input restriction.

Usable on no_std due to use of approximate square root from micromath.

Usage

Add this to your Cargo.toml

[dependencies]
approx_pearson_skew = "0.1.0"

Examples

$ cargo build --example stdin_skew
$ echo 1234 | ./target/debug/examples/stdin_skew

lib.rs:

Pearson skew second coeffiecient, using mean and median assuming immutable byte slice

References:

Usable on no_std due to use of approximate square root from micromath

Dependencies

~220KB