R/approx.CLM.r

Defines functions approx.CLM

Documented in approx.CLM

approx.CLM <- function(num, den, epsilon){

w.den <- which(den == epsilon)
w.num <- num[w.den]
res   <- ifelse(10 * abs(w.num) > epsilon, w.num * epsilon, w.num)
num[w.den] <- res

return(num)
   
}
KironmoyDas/KD-STAT0035-GMupdate documentation built on Feb. 15, 2021, 12:17 a.m.