25d894a2f6
This lets us get rid of the num-integer dependency and makes the performance of the code generated by `define_moments` close to that of `Kurtosis`. Before, it was several times slower. However, the custom implementation is more vulnerable to integer overflow. In practise, this should not matter, since it does not make sense to calculate moments of very high order.
47 lines
995 B
TOML
47 lines
995 B
TOML
[package]
|
|
authors = ["Vinzent Steinberg <Vinzent.Steinberg@gmail.com>"]
|
|
categories = ["science", "no-std"]
|
|
description = "Calculate statistics iteratively"
|
|
documentation = "https://docs.rs/average"
|
|
keywords = ["stats", "mean", "skewness", "kurtosis", "quantile"]
|
|
license = "MIT/Apache-2.0"
|
|
name = "average"
|
|
readme = "README.md"
|
|
repository = "https://github.com/vks/average"
|
|
version = "0.9.4"
|
|
|
|
[features]
|
|
serde1 = ["serde", "serde_derive", "serde-big-array"]
|
|
|
|
[[bench]]
|
|
harness = false
|
|
name = "mean"
|
|
|
|
[[bench]]
|
|
harness = false
|
|
name = "min"
|
|
|
|
[[bench]]
|
|
harness = false
|
|
name = "kurtosis"
|
|
|
|
[dependencies]
|
|
num-traits = "0.2"
|
|
float-ord = "0.2"
|
|
serde = { version = "1", optional = true }
|
|
serde_derive = { version = "1", optional = true }
|
|
serde-big-array = { version = "0.1.4", optional = true }
|
|
|
|
[dependencies.conv]
|
|
default-features = false
|
|
version = "0.3"
|
|
|
|
[dev-dependencies]
|
|
bencher = "0.1"
|
|
rand = "0.6"
|
|
rand_xoshiro = "0.1"
|
|
serde_json = "1"
|
|
streaming-stats = "0.2"
|
|
quantiles = "0.7"
|
|
proptest = "0.9"
|