pub struct Hawkes<T, K: Kernel> { /* private fields */ }Expand description
The Hawkes process is a self-exciting point process: the intensity process is stochastic and defined by $$ \lambda_t = \lambda_0(t) + \int_0^t g(t-s) dN_s $$ where $g$ is called the kernel of the Hawkes process.
Implementations§
Source§impl<T, K: Kernel> Hawkes<T, K>
impl<T, K: Kernel> Hawkes<T, K>
Sourcepub fn get_kernel(&self) -> &K
pub fn get_kernel(&self) -> &K
Get Hawkes kernel object.
Sourcepub fn get_background(&self) -> &T
pub fn get_background(&self) -> &T
Get Hawkes background intensity.
Source§impl Hawkes<PoissonProcess, ExpKernel>
impl Hawkes<PoissonProcess, ExpKernel>
Trait Implementations§
Source§impl<F> TemporalProcess for Hawkes<DeterministicBackground<F>, ExpKernel>
impl<F> TemporalProcess for Hawkes<DeterministicBackground<F>, ExpKernel>
Source§fn sample(&self, tmax: f64) -> TimeProcessResult
fn sample(&self, tmax: f64) -> TimeProcessResult
Sample a sequence of events of the process.
Returns: event timestamps and intensity process.
Source§fn batch_sample(&self, tmax: f64, num_batch: usize) -> Vec<TimeProcessResult>where
Self: Sync,
fn batch_sample(&self, tmax: f64, num_batch: usize) -> Vec<TimeProcessResult>where
Self: Sync,
Batch-sample sequences from the model.
Auto Trait Implementations§
impl<T, K> Freeze for Hawkes<T, K>
impl<T, K> RefUnwindSafe for Hawkes<T, K>where
T: RefUnwindSafe,
K: RefUnwindSafe,
impl<T, K> Send for Hawkes<T, K>
impl<T, K> Sync for Hawkes<T, K>
impl<T, K> Unpin for Hawkes<T, K>
impl<T, K> UnwindSafe for Hawkes<T, K>where
T: UnwindSafe,
K: UnwindSafe,
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