R/mmf.r

Defines functions mmf

Documented in mmf

mmf <- function(ob, max.pr){

# 0.999999 could have one more 9 (or add 1e-06) but then it would probably be too close
 
  sob   <- sign(ob)
  ob    <- abs(ob)

  res <- ifelse(ob > max.pr, max.pr, ob) 
  res <- res*sob

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