#[non_exhaustive]pub struct Args {
pub name: Option<String>,
pub prior: Option<f64>,
pub likelihood: Option<f64>,
pub likelihood_null: Option<f64>,
pub evidence: Option<Evidence>,
pub update_prior: Option<UpdateHypothesis>,
pub get_prior: bool,
pub set_prior: Option<f64>,
pub remove_prior: bool,
pub wizard: bool,
pub output: Option<OutputFormat>,
}
Expand description
Arguments for the ask-bayes
command
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: Option<String>
Name of the Hypothesis to update
prior: Option<f64>
The prior probability of the hypothesis P(H)
likelihood: Option<f64>
The likelihood of the evidence P(E|H)
likelihood_null: Option<f64>
The likelihood of the evidence P(E|¬H)
evidence: Option<Evidence>
Indicates whether supporting evidence is observed
update_prior: Option<UpdateHypothesis>
Updates the prior probability of the hypothesis P(H) to the new posterior probability, saving it to the database
get_prior: bool
Returns the saved value of the prior probability of the hypothesis P(H).
Incompatible with other flags aside from --name
set_prior: Option<f64>
Sets the prior probability of the hypothesis P(H) to the new value, saving it to the database.
Incompatible with other flags aside from --name
and --prior
remove_prior: bool
Removes the prior probability of the hypothesis P(H) from the database.
Incompatible with other flags aside from --name
wizard: bool
Runs the wizard to help guide you through the process of updating a hypothesis
output: Option<OutputFormat>
The type of output to display
Trait Implementations§
Source§impl CommandFactory for Args
impl CommandFactory for Args
Source§fn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
CommandFactory::command_for_update
Source§impl FromArgMatches for Args
impl FromArgMatches for Args
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches
to self
.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches
to self
.