rgcpp | R Documentation |
Simulate variates that follow a geometric compensated Poisson distribution of a given time and initial spot price. Used for generating terminal values for e.g. option pricing or solving Feynman-Kac PDEs; not intended for simulating a sample-path.
rgcpp(n, t, spot, a, b, lambda)
n |
number of variates to simulate |
t |
time argument to CDF |
spot |
initial spot price |
a |
the coefficient of the Poisson RV |
b |
the coefficient of the compensated drift |
lambda |
the mean rate of arrivals |
numeric
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.