get_prior

Function get_prior 

Source
pub fn get_prior(name: &str) -> Result<f64>
Expand description

Gets the prior probability of the hypothesis P(H) from the database.

ยงErrors

  • If the prior probability of the hypothesis is not in the database
  • If the database cannot be opened
  • If the prior value is not a valid float