pub struct PowerLawKernel {
pub alpha: f64,
pub c: f64,
pub p: f64,
}Expand description
Power-law kernel: phi(t) = alpha / (c + t)^p.
Fields§
§alpha: f64§c: f64§p: f64Implementations§
Trait Implementations§
Source§impl Clone for PowerLawKernel
impl Clone for PowerLawKernel
Source§fn clone(&self) -> PowerLawKernel
fn clone(&self) -> PowerLawKernel
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 moreSource§impl Kernel for PowerLawKernel
impl Kernel for PowerLawKernel
fn call(&self, t: f64) -> f64
Source§fn supports_recursive_intensity(&self) -> bool
fn supports_recursive_intensity(&self) -> bool
Whether this kernel admits an O(1) recursive intensity update.
Only exponential kernels (phi(t) = alpha * exp(-beta * t)) support this.
Source§fn decay_rate(&self) -> f64
fn decay_rate(&self) -> f64
Decay rate beta such that intensity decays as exp(-beta * dt) toward mu.
Only meaningful when
supports_recursive_intensity() is true.Source§fn excitation_size(&self) -> f64
fn excitation_size(&self) -> f64
Excitation jump size added to intensity on each arrival.
Only meaningful when
supports_recursive_intensity() is true.Auto Trait Implementations§
impl Freeze for PowerLawKernel
impl RefUnwindSafe for PowerLawKernel
impl Send for PowerLawKernel
impl Sync for PowerLawKernel
impl Unpin for PowerLawKernel
impl UnsafeUnpin for PowerLawKernel
impl UnwindSafe for PowerLawKernel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more