DiscreteDistribution: Discrete distribution.

View source: R/distribution.R

DiscreteDistributionR Documentation

Discrete distribution.

Description

Discrete distribution.

Usage

DiscreteDistribution(x, prob, replace = TRUE)

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


campsis documentation built on Sept. 11, 2024, 7:18 p.m.