R/Pi_Zj_Zcut_new.R

Defines functions Pi_Zj_Zcut_new

################################################################
Pi_Zj_Zcut_new <- function(q, mean, sd, wl0) {
  a <- wl0 * pnorm(q, mean, sd)  ################################################################
  if(sum(a) == 0) return(wl0)
  return(a / sum(a))
}
zy26/LTMGSCA documentation built on Jan. 24, 2020, 11:39 p.m.