Learn R Programming

scdensity (version 1.0.3)

CleanWeights: 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)

Value

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

Arguments

w

A vector of probability weights