powered by
Restore the distribution with the COS method under different parameters settings for error analysis.
CosPdfMulti(x, Chf, N, a, b)
A matrix that contains restored p.d.f. with different parameters
vector of observations
the characteristic function
the number of cos term for summation
the lower limit of the truncation interval
the upper limit of the truncation interval
N <- 2**(1:6) x <- seq(-5, 5, by = 10 / (32 - 1)) a <- -10.0 b <- 10.0 CosPdfMulti(x, StNormChf, N, a, b)
Run the code above in your browser using DataLab