approx_pearson_skew

Crates.ioapprox_pearson_skew
lib.rsapprox_pearson_skew
version0.1.0
sourcesrc
created_at2021-04-18 21:01:37.25385
updated_at2021-04-18 21:01:37.25385
descriptionPearson second skew coefficient, using micromath square root approximation
homepage
repositoryhttps://github.com/hazelutf8/approx_pearson_skew
max_upload_size
id386347
size17,320
(hazelutf8)

documentation

README

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
Commit count: 1

cargo fmt