renormalize.weights: Renormalize weights

Description Usage Arguments Value Author(s) See Also

Description

This function creates a discrete probability distribution from a set of unnormalized (log) weights.

Usage

1

Arguments

weights

a vector of numbers (>0 if log=FALSE)

log

a logical indicating whether the weights are given as the logarithm of the weights

engine

run using "R" or "C" code

Value

a vector of probabilities that sum to 1

Author(s)

Jarad Niemi

See Also

renormalize


jarad/smcUtils documentation built on May 18, 2019, 3:46 p.m.