2014-02-16 21:48:40 +00:00
|
|
|
# Normal approximation of the distribution function of the Esscher
|
|
|
|
# transform of a Laplace Motion
|
|
|
|
#
|
|
|
|
# Author: Francois Pelletier
|
|
|
|
#
|
|
|
|
# LGPL 3.0
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
#' Normal approximation of the distribution function of the
|
|
|
|
#' Esscher transform of a Laplace Motion
|
|
|
|
#' @param x vector of quantiles
|
|
|
|
#' @param param Parameter vector
|
|
|
|
#' @param hEsscher Esscher transform parameter
|
|
|
|
#' @param eval.time Time of the process
|
|
|
|
#' @param type Choose between "mu" or "kappa" parametrization
|
|
|
|
#' @param log Logical for log-parameters
|
|
|
|
#' @param start Starting value of the process
|
2014-03-06 02:44:52 +00:00
|
|
|
#' @export pnormapproxEsscherLM
|
2014-02-16 21:48:40 +00:00
|
|
|
#' @return Normal distribution function approximation
|
2014-03-06 02:44:52 +00:00
|
|
|
#' @author Francois Pelletier
|
2014-02-16 21:48:40 +00:00
|
|
|
pnormapproxEsscherLM <- function(x,param,hEsscher=0,eval.time=1,type="mu",log=FALSE,start=0)
|
|
|
|
{
|
2014-07-07 02:57:57 +00:00
|
|
|
pnorm(x,start+eval.time*(mGAL(param,1,type,log)+hEsscher*cmGAL(param,2,type,log)),
|
|
|
|
sqrt(eval.time*cmGAL(param,2,type,log)))
|
2014-02-16 21:48:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|