Macro peroxide::pnorm

source ·
macro_rules! pnorm {
    ( $x:expr, $mean:expr, $sd:expr ) => { ... };
    ( $x:expr ) => { ... };
}
Expand description

R like pnorm

§Examples

#[macro_use]
extern crate peroxide;
use peroxide::fuga::*;

fn main() {
    let a = pnorm!(2, 2, 1);
    println!("{:?}", a); // 0.5

    let b = pnorm!(0); // same as pnorm!(0,0,1)
    println!("{:?}", b);
}