R/util_normalize_weight.R

#'@rdname normalize_weight
#'@title normalize_weight
#'@description takes log weights and return normalized weights
#'@export
normalize_weight <- function(logw){
  w <- exp(logw - max(logw))
  w <- w / sum(w)
  return(w)
}
pierrejacob/CoupledPF documentation built on May 25, 2019, 6:07 a.m.