pub struct FellerSquareRoot {
pub alpha: f64,
pub mu: f64,
pub sigma: f64,
pub n_paths: usize,
pub n_steps: usize,
pub t_end: f64,
pub s_0: f64,
}Expand description
Feller Square Root Process simulates asset prices using: dS = α * (μ - S) * dt + σ * sqrt(S) * dW
Fields§
§alpha: f64§mu: f64§sigma: f64§n_paths: usize§n_steps: usize§t_end: f64§s_0: f64Implementations§
Auto Trait Implementations§
impl Freeze for FellerSquareRoot
impl RefUnwindSafe for FellerSquareRoot
impl Send for FellerSquareRoot
impl Sync for FellerSquareRoot
impl Unpin for FellerSquareRoot
impl UnwindSafe for FellerSquareRoot
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