pub struct LogNormalMixtureConfig {
pub components: Vec<LogNormalComponent>,
pub min_value: f64,
pub max_value: Option<f64>,
pub decimal_places: u8,
}Expand description
Configuration for a Log-Normal Mixture Model.
Fields§
§components: Vec<LogNormalComponent>Components of the mixture
min_value: f64Minimum value (default: 0.01)
max_value: Option<f64>Maximum value (clamps output)
decimal_places: u8Number of decimal places for rounding
Implementations§
Source§impl LogNormalMixtureConfig
impl LogNormalMixtureConfig
Sourcepub fn new(components: Vec<LogNormalComponent>) -> Self
pub fn new(components: Vec<LogNormalComponent>) -> Self
Create a new Log-Normal mixture configuration.
Sourcepub fn typical_transactions() -> Self
pub fn typical_transactions() -> Self
Create a typical transaction amount mixture (routine/significant/major).
Trait Implementations§
Source§impl Clone for LogNormalMixtureConfig
impl Clone for LogNormalMixtureConfig
Source§fn clone(&self) -> LogNormalMixtureConfig
fn clone(&self) -> LogNormalMixtureConfig
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 LogNormalMixtureConfig
impl Debug for LogNormalMixtureConfig
Source§impl Default for LogNormalMixtureConfig
impl Default for LogNormalMixtureConfig
Source§impl<'de> Deserialize<'de> for LogNormalMixtureConfig
impl<'de> Deserialize<'de> for LogNormalMixtureConfig
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 LogNormalMixtureConfig
impl RefUnwindSafe for LogNormalMixtureConfig
impl Send for LogNormalMixtureConfig
impl Sync for LogNormalMixtureConfig
impl Unpin for LogNormalMixtureConfig
impl UnwindSafe for LogNormalMixtureConfig
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