Nothing
bichon_optim <- function(x, model, T, method.param=1){
y <- t(x)
if((nrow(y)==1) && (ncol(y)==model@d)){
z <- y #only one point
}else{
#many points
if(ncol(x) == model@d) z <- x
if(ncol(x) != model@d) z <- y
}
krig <- predict_nobias_km(object=model,newdata=as.data.frame(z),type="UK",se.compute=TRUE)
mk <- krig$mean; sk <- krig$sd; alpha <- method.param
t <- (mk-T)/sk; tplus <- t + alpha; tminus <- t - alpha
crit <- rep(0, length(t))
G <- alpha*(pnorm(tplus)-pnorm(tminus)) - t*(2*pnorm(t) - pnorm(tplus) - pnorm(tminus)) - (2*dnorm(t) - dnorm(tplus) - dnorm(tminus))
crit[t != 'Inf' & t !='-Inf'] <- (G*sk)[t != 'Inf' & t != '-Inf']
return(crit)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.