pub struct LevyProcess;Expand description
Lévy process generators: alpha-stable, variance gamma, CGMY.
Implementations§
Source§impl LevyProcess
impl LevyProcess
Sourcepub fn alpha_stable(
alpha: f64,
beta: f64,
scale: f64,
loc: f64,
t: f64,
n_steps: usize,
seed: u64,
) -> Vec<f64>
pub fn alpha_stable( alpha: f64, beta: f64, scale: f64, loc: f64, t: f64, n_steps: usize, seed: u64, ) -> Vec<f64>
Simulate an alpha-stable Lévy process path using Chambers-Mallows-Stuck method.
For index alpha in (0, 2] and skewness beta in [-1, 1]. alpha=2 gives a Gaussian (Brownian motion scaling).
Sourcepub fn variance_gamma(
sigma: f64,
nu: f64,
theta: f64,
t: f64,
n_steps: usize,
seed: u64,
) -> Vec<f64>
pub fn variance_gamma( sigma: f64, nu: f64, theta: f64, t: f64, n_steps: usize, seed: u64, ) -> Vec<f64>
Simulate a Variance Gamma (VG) process path.
VG = theta * G + sigma * W(G) where G is a Gamma subordinator.
Auto Trait Implementations§
impl Freeze for LevyProcess
impl RefUnwindSafe for LevyProcess
impl Send for LevyProcess
impl Sync for LevyProcess
impl Unpin for LevyProcess
impl UnsafeUnpin for LevyProcess
impl UnwindSafe for LevyProcess
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
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.