statistical/
lib.rs

1// Copyright (c) 2015 Jeff Belgum
2//
3// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
4// documentation files (the "Software"), to deal in the Software without restriction, including without
5// limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
6// the Software, and to permit persons to whom the Software is furnished to do so, subject to the following
7// conditions:
8//
9// The above copyright notice and this permission notice shall be included in all copies or substantial portions
10// of the Software.
11//
12// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
13// TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
14// SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
15// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
16// DEALINGS IN THE SOFTWARE.
17
18//! A simple statistics library
19//!
20//! Heavily inspired by the python standard library statistics module.
21
22extern crate rand;
23extern crate num;
24
25mod univariate_;
26mod stats_;
27
28pub mod univariate {
29    pub use univariate_::{
30        harmonic_mean,
31        geometric_mean,
32        quadratic_mean,
33        mode,
34        average_deviation,
35        pearson_skewness,
36        skewness,
37        pskewness,
38        kurtosis,
39        pkurtosis,
40        standard_error_mean,
41        standard_error_skewness,
42        standard_error_kurtosis
43    };
44}
45
46pub use univariate::mode;
47pub use stats_::{
48    Degree,
49    mean,
50    median,
51    variance,
52    population_variance,
53    standard_deviation,
54    population_standard_deviation,
55    standard_scores
56};