pub struct InformationCriterionResult {
pub criterion_name: String,
pub value: f64,
pub log_likelihood: f64,
pub n_parameters: usize,
pub n_data_points: usize,
pub effective_parameters: Option<f64>,
pub standard_error: Option<f64>,
pub weight: Option<f64>,
}Expand description
Result of information criterion calculation
Fields§
§criterion_name: StringName of the criterion
value: f64Value of the information criterion
log_likelihood: f64Log-likelihood of the model
n_parameters: usizeNumber of parameters
n_data_points: usizeNumber of data points
effective_parameters: Option<f64>Effective number of parameters (for DIC, WAIC)
standard_error: Option<f64>Standard error of the criterion (if available)
weight: Option<f64>Model weight relative to other models
Implementations§
Source§impl InformationCriterionResult
impl InformationCriterionResult
Sourcepub fn new(
criterion_name: String,
value: f64,
log_likelihood: f64,
n_parameters: usize,
n_data_points: usize,
) -> Self
pub fn new( criterion_name: String, value: f64, log_likelihood: f64, n_parameters: usize, n_data_points: usize, ) -> Self
Create new IC result
Sourcepub fn with_effective_parameters(self, p_eff: f64) -> Self
pub fn with_effective_parameters(self, p_eff: f64) -> Self
Set effective number of parameters
Sourcepub fn with_standard_error(self, se: f64) -> Self
pub fn with_standard_error(self, se: f64) -> Self
Set standard error
Sourcepub fn with_weight(self, weight: f64) -> Self
pub fn with_weight(self, weight: f64) -> Self
Set model weight
Trait Implementations§
Source§impl Clone for InformationCriterionResult
impl Clone for InformationCriterionResult
Source§fn clone(&self) -> InformationCriterionResult
fn clone(&self) -> InformationCriterionResult
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 InformationCriterionResult
impl RefUnwindSafe for InformationCriterionResult
impl Send for InformationCriterionResult
impl Sync for InformationCriterionResult
impl Unpin for InformationCriterionResult
impl UnwindSafe for InformationCriterionResult
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