[][src]Function rstats::gmeanstd

pub fn gmeanstd(dvec: &[i64]) -> Result<MStats>

Geometric mean and std ratio of an i64 slice.
Zero valued data is not allowed.
Std of ln data becomes a ratio after conversion back.

Example

use rstats::gmeanstd;
const VEC1:[i64;14] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14];
let res = gmeanstd(&VEC1).unwrap();
assert_eq!(res.mean,6.045855171418503_f64);
assert_eq!(res.std,2.1084348239406303_f64);