macro_rules! arithmetic_mean {
    ( $( $a:expr ),* ) => { ... };
}
Expand description

Calculate the arithmetic mean.

Examples

use lib_rapid::math::general::avg_macros::arithmetic_mean;
 
let a = arithmetic_mean![1.0, 2.0, 2.0, 2.0, 3.0, 4.0, 5.0, 6.0];
 
assert_eq!(3.125, a);