basic_stats 1.0.0

Lightweight library with basic statistical estimators and hypothesis tests.
Documentation
1
2
3
4
5
6
7
8
use super::{StatsError, StatsResult};

pub fn check_alpha_in_open_0_1(alpha: f64) -> StatsResult<()> {
    if 0.0 < alpha && alpha < 1.0 {
        return Ok(());
    }
    Err(StatsError("arg `alpha` must be in interval (0, 1)"))
}