weightedMean: Compute the weighted arithmetic means of the particles.

Description Usage Arguments Value See Also

View source: R/RcppExports.R

Description

This SMC estimate of the means can be used to centre independent Metropolis-Hastings proposals.

Usage

1
weightedMean(particles, log_weights)

Arguments

particles

npeaks * npart Matrix of parameter values for each particle.

log_weights

logarithms of the importance weights of each particle.

Value

A vector of means, one for each row.

See Also

weighted.mean


mooresm/serrsBayes documentation built on July 2, 2021, 7:36 a.m.