R/normalize_priors.R

Defines functions normalize_priors

normalize_priors <- function(x, 
                             fn = function(x){x/sum(x,na.rm = TRUE)},
                             verbose=TRUE){
    if(verbose){
        messager("Normalizing priors with the function:")
        print(fn)
    } 
    fn(x)
}
RajLabMSSM/echofinemap documentation built on Jan. 3, 2023, 1:42 a.m.