rpoly01: Generate n samples from the distribution

View source: R/gen_sample.R

rpoly01R Documentation

Generate n samples from the distribution

Description

Generate n samples from the distribution

Usage

rpoly01(n, k = 5)

Arguments

n

The number of samples to generate.

k

The exponent in the distribution function, defaults to 5.

Value

A vector of n samples from the specified polynomial distribution.

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


rbbnp documentation built on June 8, 2025, 10:46 a.m.