#array #multidimensional #statistics #matrix #ndarray

ndarray-stats

Statistical routines for ArrayBase, the n-dimensional array data structure provided by ndarray

2 unstable releases

✓ Uses Rust 2018 edition

0.2.0 Apr 13, 2019
0.1.0 Nov 21, 2018

#84 in Data structures

Download history 61/week @ 2019-01-31 60/week @ 2019-02-07 7/week @ 2019-02-14 45/week @ 2019-02-21 44/week @ 2019-02-28 1/week @ 2019-03-07 27/week @ 2019-03-14 67/week @ 2019-03-21 58/week @ 2019-03-28 33/week @ 2019-04-04 56/week @ 2019-04-11 12/week @ 2019-04-18 24/week @ 2019-04-25 107/week @ 2019-05-02 141/week @ 2019-05-09

285 downloads per month
Used in 1 crate

MIT/Apache

152KB
3K SLoC

ndarray-stats

Build status Coverage Dependencies status Crate Documentation

This crate provides statistical methods for ndarray's ArrayBase type.

Currently available routines include:

  • order statistics (minimum, maximum, median, quantiles, etc.);
  • summary statistics (mean, skewness, kurtosis, central moments, etc.)
  • partitioning;
  • correlation analysis (covariance, pearson correlation);
  • measures from information theory (entropy, KL divergence, etc.);
  • histogram computation.

See the documentation for more information.

Please feel free to contribute new functionality! A roadmap can be found here.

Using with Cargo

[dependencies]
ndarray = "0.12.1"
ndarray-stats = "0.2"

Releases

  • 0.2.0

    • New functionality:
      • Summary statistics:
        • Harmonic mean
        • Geometric mean
        • Central moments
        • Kurtosis
        • Skewness
      • Information theory:
        • Entropy
        • Cross-entropy
        • Kullback-Leibler divergence
      • Quantiles and order statistics:
        • argmin / argmin_skipnan
        • argmax / argmax_skipnan
        • Optimized bulk quantile computation (quantiles_mut, quantiles_axis_mut)
    • Fixes:
      • Reduced occurrences of overflow for interpolate::midpoint
    • Improvements / breaking changes:
      • Redesigned error handling across the whole crate, standardising on Result
      • All ndarray-stats' extension traits are now impossible to implement by users of the library (see #34)

    Contributors: @jturner314, @LukeMathWalker, @phungleson, @munckymagik

  • 0.1.0

    • Initial release by @LukeMathWalker and @jturner314.

Contributing

Please feel free to create issues and submit PRs.

License

Copyright 2018 ndarray-stats developers

Licensed under the Apache License, Version 2.0, or the MIT license, at your option. You may not use this project except in compliance with those terms.

Dependencies

~2MB
~33K SLoC