Learn R Programming

rbbnp (version 0.3.0)

rpoly01: Generate n samples from the distribution

Description

Generate n samples from the distribution

Usage

rpoly01(n, k = 5)

Value

A vector of n samples from the specified polynomial distribution.

CDF: f(x) = (x-1)^k + 1

Arguments

n

The number of samples to generate.

k

The exponent in the distribution function, defaults to 5.