R/est_bw.R

est.bw <- function(y, norm.x, id.circ, kernel) {
    gcvs <- calc.gcv(y, norm.x, id.circ, kernel)
    id.cand <- which(gcvs$gcv == min(gcvs$gcv, na.rm = T))
    k.eval <- gcvs$cand[id.cand]
    
    return(k.eval)
}

Try the gainML package in your browser

Any scripts or data that you put into this service are public.

gainML documentation built on June 28, 2019, 5:05 p.m.