lace_stats 0.4.0

Contains component model and hyperprior specifications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::rv::traits::Rv;
use rand::Rng;

struct FlatImproper;

impl<X> Rv<X> for FlatImproper {
    fn f(&self, _x: &X) -> f64 {
        1.0
    }

    fn ln_f(&self, _x: &X) -> f64 {
        0.0
    }

    fn draw<R: Rng>(&self, _rng: &mut R) -> X {
        panic!("Cannot draw from flat prior")
    }
}