"pdfgno" <-
function(x,para) {
if(! are.pargno.valid(para)) return()
XI <- para$para[1]
A <- para$para[2]
K <- para$para[3]
Y <- (x - XI)/A
if(K != 0) {
ARG <- 1-K*Y
Y <- suppressWarnings(-log(ARG)/K)
}
f <- exp(K*Y - Y^2/2)/(A*sqrt(2*pi))
names(f) <- NULL
f[! is.finite(f)] <- NA
f[is.na(f)] <- 0 # decision Dec. 2015
return(f)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.