Skip to main content

update

Function update 

Source
pub fn update(prior: &Family, seen: Seen) -> Option<(f64, Family)>
Expand description

Observing seen, with the variable distributed as prior: the natural logarithm of the observation’s probability (a density for Normal), and the variable’s distribution after it. None if the two aren’t a conjugate pair. A logarithm of −∞ means the observation is impossible, like a count above the number of trials; the prior is returned then.