pub struct MonteCarloConfig {
pub paths: usize,
pub time_steps: usize,
pub scheme: DiscretizationScheme,
pub sampler: Sampler,
pub model: McModel,
pub seed: u64,
}Fields§
§paths: usize§time_steps: usize1 = terminal simulation (exact); > 1 = path-wise stepping.
Local vol always steps path-wise (at least LOCAL_VOL_MIN_STEPS).
scheme: DiscretizationScheme§sampler: Sampler§model: McModel§seed: u64Implementations§
Source§impl MonteCarloConfig
impl MonteCarloConfig
pub fn from_data(data: &EquityOptionData) -> Self
Trait Implementations§
Source§impl Clone for MonteCarloConfig
impl Clone for MonteCarloConfig
Source§fn clone(&self) -> MonteCarloConfig
fn clone(&self) -> MonteCarloConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MonteCarloConfig
Source§impl Debug for MonteCarloConfig
impl Debug for MonteCarloConfig
Auto Trait Implementations§
impl Freeze for MonteCarloConfig
impl RefUnwindSafe for MonteCarloConfig
impl Send for MonteCarloConfig
impl Sync for MonteCarloConfig
impl Unpin for MonteCarloConfig
impl UnsafeUnpin for MonteCarloConfig
impl UnwindSafe for MonteCarloConfig
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