DiscreteDistribution {campsis} | R Documentation |
Discrete distribution.
DiscreteDistribution(x, prob, replace = TRUE)
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 |
a discrete distribution