pub struct McConfig {
pub n_samples: usize,
pub seed: u64,
pub quasi_mc: bool,
}Expand description
Configuration for Monte Carlo simulation.
Fields§
§n_samples: usizeNumber of samples.
seed: u64Random seed (0 = use time-based seed).
quasi_mc: boolWhether to use Quasi-MC (Sobol-like low-discrepancy sequence).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for McConfig
impl<'de> Deserialize<'de> for McConfig
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 McConfig
impl RefUnwindSafe for McConfig
impl Send for McConfig
impl Sync for McConfig
impl Unpin for McConfig
impl UnsafeUnpin for McConfig
impl UnwindSafe for McConfig
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