distribute: distribute

Description Usage Arguments Value

View source: R/utils.R

Description

given a pdf for a vector of values, returns a sample space of vals distributed around the pdf

Usage

1
distribute(pdf, val, size = 10000)

Arguments

pdf

is a vector of probs summing to one

val

is a vector of values associated with 'pdf'

size

is a large integer (>100)

Value

sample of vals reflective of pdf


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