Multivariate Point Process Package  0.1
Public Member Functions | List of all members
OgataThinning Class Reference

This class implements the general Simulator based on Ogata's Thinning algorithm. More...

#include "include/OgataThinning.h"

Inheritance diagram for OgataThinning:
Simulator

Public Member Functions

 OgataThinning (const unsigned &num_dims)
 
virtual void Simulate (IProcess &process, const std::vector< double > &vec_T, std::vector< Sequence > &sequences)
 
virtual void Simulate (IProcess &process, const unsigned &n, const unsigned &num_sequences, std::vector< Sequence > &sequences)
 
virtual Event SimulateNext (IProcess &process, const Sequence &data)
 

Detailed Description

This class implements the general Simulator based on Ogata's Thinning algorithm.

Definition at line 16 of file OgataThinning.h.

Constructor & Destructor Documentation

OgataThinning::OgataThinning ( const unsigned &  num_dims)
inline

The constructor.

Parameters
[in]num_dimsthe number of dimension of the given point process.

Definition at line 42 of file OgataThinning.h.

Member Function Documentation

void OgataThinning::Simulate ( IProcess process,
const std::vector< double > &  vec_T,
std::vector< Sequence > &  sequences 
)
virtual

Simulates collection of sequences before the observation window in vec_T;

Parameters
[in]processthe parameters of the specific process we are going to simulate from.
[in]vec_Tthe collection of obsrvation window before which we can simualte the events. The numbef of elements in vec_T determins how many sequences we want to simulate. Each element of vec_T is the observation window wrt the respetive sequence.
[out]sequencesthe simulated sequences. The number of elements in sequences is the same as that in vec_T;

Implements Simulator.

Definition at line 11 of file OgataThinning.cc.

void OgataThinning::Simulate ( IProcess process,
const unsigned &  n,
const unsigned &  num_sequences,
std::vector< Sequence > &  sequences 
)
virtual

Simulates collection of sequences, each of which has \(n\) events.

Parameters
processthe parameters of the specific process we are going to simulate from.
nthe number of events we are going to simualte in each sequence.
num_sequencesthe number of sequence we are going to simulate.
sequencesthe simulated sequences. The number of elements in sequences is the same as num_sequences.

Implements Simulator.

Definition at line 95 of file OgataThinning.cc.

Event OgataThinning::SimulateNext ( IProcess process,
const Sequence data 
)
virtual

Simulates the next single event.

Parameters
processthe parameters of the specific process we are going to simulate from.
datathe sequence of past events.
Returns
the simulated next event.

Implements Simulator.

Definition at line 174 of file OgataThinning.cc.


The documentation for this class was generated from the following files: