DiscreteDistribution: Discrete distribution.

Description Usage Arguments Value

View source: R/distribution.R

Description

Discrete distribution.

Usage

1

Arguments

x

vector of one or more integers from which to choose

prob

a vector of probability weights for obtaining the elements of the vector being sampled

replace

should sampling be with replacement, default is TRUE

Value

a discrete distribution


Calvagone/campsis documentation built on Jan. 14, 2022, 9:40 p.m.