Crate ask_bayes

Source
Expand description

This library contains the core functionality of the ask-bayes crate.

Modules§

prelude
The prelude for the ask-bayes crate.

Structs§

Args
Arguments for the ask-bayes command

Enums§

Evidence
Whether or not evidence supporting the hypothesis was observed
OutputFormat
The output format to use when displaying results to the user
UpdateHypothesis
Whether or not the hypothesis should be updated in the database

Functions§

calculate_posterior_probability
The posterior probability of the hypothesis P(H|E) if the evidence is observed, or P(H|¬E) if the evidence is not observed
get_prior
Gets the prior probability of the hypothesis P(H) from the database.
remove_prior
Removes the prior probability of the hypothesis P(H) from the database
report_posterior_probability
Reports the posterior probability of the hypothesis given the evidence. Also reports the values of the prior, likelihood, and likelihood_null.
set_prior
Sets the prior probability of the hypothesis P(H) to the new value, saving it to the database.
wizard
Runs the wizard to guide the update of the prior probability of the hypothesis