Macro peroxide::dnorm

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

R like dnorm

§Examples

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

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

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