chf_stdNTS | R Documentation |
chf_stdNTS
calculates Ch.F of the standard NTS distribution with parameters (\alpha, \theta, \beta)
.
If a time parameter value is given, it calculates Ch.F of the standard NTS profess
\phi(u)=E[\exp(i u (X(t+s)-X(s))]=\exp(t \log(E[\exp(i u X(1))]))
, where X is the standard NTS process generated
by the standard NTS distribution with parameters (\alpha, \theta, \beta)
.
chf_stdNTS(u, param)
u |
An array of u |
ntsparam |
A vector of the standard NTS parameters |
Characteristic function of the standatd NTS distribution
#' library(functional)
library(nloptr)
library(pracma)
library(spatstat)
library(Matrix)
library("temStaR")
alpha <- 1.2
theta <- 1
beta <- -0.2
ntsparam <- c(alpha, theta, beta)
u <- seq(from = -2*pi, to = 2*pi, length.out = 101)
phi <- chf_stdNTS(u, ntsparam)
#Annual based parameters
alpha <- 1.2
theta <- 1
beta <- -0.2
#scaling annual parameters to one day
dt <- 1/250 #one day
ntsparam <- c(alpha, theta, beta, gamma, mu, dt)
u <- seq(from = -2*pi, to = 2*pi, length.out = 101)
phi <- chf_stdNTS(u, ntsparam)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.