Expand description

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

Modules

The prelude for the ask-bayes crate.

Structs

Arguments for the ask-bayes command

Enums

Whether or not evidence supporting the hypothesis was observed

The output format to use when displaying results to the user

Whether or not the hypothesis should be updated in the database

Functions

The posterior probability of the hypothesis P(H|E) if the evidence is observed, or P(H|¬E) if the evidence is not observed

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

Removes the prior probability of the hypothesis P(H) from the database

Reports the posterior probability of the hypothesis given the evidence. Also reports the values of the prior, likelihood, and likelihood_null.

Sets the prior probability of the hypothesis P(H) to the new value, saving it to the database.

Runs the wizard to guide the update of the prior probability of the hypothesis