trunc_0: truncate at zero

Description Usage Arguments Value

Description

truncate a pmf at index values below zero

Usage

1
trunc_0(pmf, index)

Arguments

pmf

is a numeric vector of probabilites

index

is a numeric vector values associates with 'pmf'

Value

'pmf' with probs at vals below zero set to zero


crumplecup/muddier documentation built on Aug. 18, 2021, 11:02 a.m.