CleanWeights: Clean out near-zeros from a probability weights vector and...

View source: R/helper_functions.R

CleanWeightsR Documentation

Clean out near-zeros from a probability weights vector and re-normalize

Description

Clean out near-zeros from a probability weights vector and re-normalize

Usage

CleanWeights(w)

Arguments

w

A vector of probability weights

Value

A vector with the near-zeros removed, still summing to 1.


scdensity documentation built on Sept. 12, 2024, 7:35 a.m.