pub struct BayesianModelSelectionResult {
pub model_names: Vec<String>,
pub log_evidence: Vec<f64>,
pub model_probabilities: Vec<f64>,
pub bayes_factors: Vec<f64>,
pub best_model_index: usize,
pub method: EvidenceEstimationMethod,
}Expand description
Result of Bayesian model selection
Fields§
§model_names: Vec<String>Model identifiers
log_evidence: Vec<f64>Log evidence for each model
model_probabilities: Vec<f64>Model probabilities (Bayesian weights)
bayes_factors: Vec<f64>Bayes factors relative to the best model
best_model_index: usizeBest model index
method: EvidenceEstimationMethodEvidence estimation method used
Implementations§
Source§impl BayesianModelSelectionResult
impl BayesianModelSelectionResult
Sourcepub fn best_model(&self) -> &str
pub fn best_model(&self) -> &str
Get the best model name
Sourcepub fn evidence_interpretation(
&self,
model1_idx: usize,
model2_idx: usize,
) -> String
pub fn evidence_interpretation( &self, model1_idx: usize, model2_idx: usize, ) -> String
Interpret the strength of evidence using Jeffreys’ scale
Trait Implementations§
Source§impl Clone for BayesianModelSelectionResult
impl Clone for BayesianModelSelectionResult
Source§fn clone(&self) -> BayesianModelSelectionResult
fn clone(&self) -> BayesianModelSelectionResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BayesianModelSelectionResult
impl RefUnwindSafe for BayesianModelSelectionResult
impl Send for BayesianModelSelectionResult
impl Sync for BayesianModelSelectionResult
impl Unpin for BayesianModelSelectionResult
impl UnwindSafe for BayesianModelSelectionResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more