[][src]Function filter::discrete_bayes::update

pub fn update<F: Float>(likelihood: &[F], prior: &[F]) -> Result<Vec<F>, ()>

Computes the posterior of a discrete random variable given a discrete likelihood and prior. In a typical application the likelihood will be the likelihood of a measurement matching your current environment, and the prior comes from discrete_bayes.predict().