pub struct MixtureComponentConfig {
pub weight: f64,
pub mu: f64,
pub sigma: f64,
pub label: Option<String>,
}Expand description
Configuration for a single mixture component.
Fields§
§weight: f64Weight of this component (must sum to 1.0 across all components).
mu: f64Location parameter (mean for Gaussian, mu for log-normal).
sigma: f64Scale parameter (std dev for Gaussian, sigma for log-normal).
label: Option<String>Optional label for this component (e.g., “routine”, “significant”, “major”).
Trait Implementations§
Source§impl Clone for MixtureComponentConfig
impl Clone for MixtureComponentConfig
Source§fn clone(&self) -> MixtureComponentConfig
fn clone(&self) -> MixtureComponentConfig
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 moreSource§impl Debug for MixtureComponentConfig
impl Debug for MixtureComponentConfig
Source§impl<'de> Deserialize<'de> for MixtureComponentConfig
impl<'de> Deserialize<'de> for MixtureComponentConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MixtureComponentConfig
impl RefUnwindSafe for MixtureComponentConfig
impl Send for MixtureComponentConfig
impl Sync for MixtureComponentConfig
impl Unpin for MixtureComponentConfig
impl UnwindSafe for MixtureComponentConfig
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