pub enum VariableParameters {
ContinuousParams {
mean: f64,
std: f64,
coefficients: Option<Array1<f64>>,
},
OrdinalParams {
levels: Vec<f64>,
probabilities: Array1<f64>,
transition_matrix: Option<Array2<f64>>,
},
CategoricalParams {
categories: Vec<f64>,
probabilities: Array1<f64>,
},
SemiContinuousParams {
zero_prob: f64,
continuous_mean: f64,
continuous_std: f64,
threshold: f64,
},
BoundedParams {
lower: f64,
upper: f64,
beta_alpha: f64,
beta_beta: f64,
},
BinaryParams {
probability: f64,
},
}Expand description
Parameters learned for each variable type
Variants§
ContinuousParams
ContinuousParams
OrdinalParams
OrdinalParams
CategoricalParams
CategoricalParams
SemiContinuousParams
SemiContinuousParams
BoundedParams
BoundedParams
BinaryParams
BinaryParams
Trait Implementations§
Source§impl Clone for VariableParameters
impl Clone for VariableParameters
Source§fn clone(&self) -> VariableParameters
fn clone(&self) -> VariableParameters
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 VariableParameters
impl RefUnwindSafe for VariableParameters
impl Send for VariableParameters
impl Sync for VariableParameters
impl Unpin for VariableParameters
impl UnwindSafe for VariableParameters
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