pub struct ExponentialKernel {
pub alpha: f64,
pub beta: f64,
}Expand description
Exponential kernel: phi(t) = alpha * exp(-beta * t).
Fields§
§alpha: f64§beta: f64Implementations§
Trait Implementations§
Source§impl Clone for ExponentialKernel
impl Clone for ExponentialKernel
Source§fn clone(&self) -> ExponentialKernel
fn clone(&self) -> ExponentialKernel
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 ExponentialKernel
impl Kernel for ExponentialKernel
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 ExponentialKernel
impl RefUnwindSafe for ExponentialKernel
impl Send for ExponentialKernel
impl Sync for ExponentialKernel
impl Unpin for ExponentialKernel
impl UnsafeUnpin for ExponentialKernel
impl UnwindSafe for ExponentialKernel
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