Package: |
GaDiFPT |
Type: |
Package |
Version: |
1.0 |
Date: |
2015-01-16 |
License: |
GPL-2 |
demo
folder.
Parameters setting the initial time and state, the final time and the initial resolution are also to be given in the same script.
Then, the vectorsetup
function will be used to calculate mean and covariance for the specified process. A plot of both the estimated mean of the process (with confidence interval) and the boundary is produced for the user to check the subthreshold regimen.
Thus, the function FPTdensity_byint
constructs a numerical approximation of the First Passage Time density function.
Plots of the FPT density, of the FPT distribution function and of the instantaneous firing rate are produced.
Then, the function FPTsimul
generates a sample of first passage times and compares the related histogram to the approximated FPT density.
The scripts Wiener
and OrnUhl
in the demo
folder constitute skeleton examples of use of the package for simulation of the classical Wiener and Ornstein-Uhlenbeck processes through different boundaries. More compex examples are also given in OrnUhlCurrent
and Logistic
scripts.
Buonocore, A., Nobile, A.~G., and Ricciardi, L.M., A new integral equation for the evaluation of first-passage-time probability densities. Adv Appl Prob 19 (1987), 784--800.