pub struct PathwiseSDE {
pub drift: String,
pub diffusion: String,
pub initial_condition: f64,
pub time_steps: usize,
pub step_size: f64,
pub scheme: NumericalSDEScheme,
}Fields§
§drift: String§diffusion: String§initial_condition: f64§time_steps: usize§step_size: f64§scheme: NumericalSDESchemeImplementations§
Source§impl PathwiseSDE
impl PathwiseSDE
pub fn euler_maruyama( drift: &str, diffusion: &str, x0: f64, steps: usize, dt: f64, ) -> Self
pub fn milstein( drift: &str, diffusion: &str, x0: f64, steps: usize, dt: f64, ) -> Self
pub fn strong_order(&self) -> f64
pub fn weak_order(&self) -> f64
pub fn simulate_one_path(&self) -> Vec<f64>
Trait Implementations§
Source§impl Clone for PathwiseSDE
impl Clone for PathwiseSDE
Source§fn clone(&self) -> PathwiseSDE
fn clone(&self) -> PathwiseSDE
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 moreAuto Trait Implementations§
impl Freeze for PathwiseSDE
impl RefUnwindSafe for PathwiseSDE
impl Send for PathwiseSDE
impl Sync for PathwiseSDE
impl Unpin for PathwiseSDE
impl UnsafeUnpin for PathwiseSDE
impl UnwindSafe for PathwiseSDE
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