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
- Output
Format - The output format to use when displaying results to the user
- Update
Hypothesis - 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
, andlikelihood_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