if (FALSE) {
### The following example reports all steps
### for the construction of an yuima.law
### object using the external R package
### VarianceGamma available on CRAN
library(VarianceGamma)
## Definition of a yuima.law object
# User defined rng
myrng <- function(n, eta, t){
rvg(n, vgC = 0, sigma = sqrt(t), theta = 0, nu = 1/(eta*t))
}
# User defined density
mydens <- function(x, eta, t){
dvg(x, vgC = 0, sigma = sqrt(t), theta = 0, nu = 1/(eta*t))
}
mylaw <- setLaw(rng = myrng, density = mydens, dim = 1)
}
Run the code above in your browser using DataLab