DiscreteUniform: The Discrete Uniform Distribution

Description Usage Arguments Value Examples

Description

The Discrete Uniform Distribution

Usage

1
2
3
4
5
6
7
ddunif(x, min = 0, max = 1)

pdunif(q, min = 0, max = 1)

qdunif(p, min = 0, max = 1)

rdunif(n, min = 0, max = 1)

Arguments

x

vector of (non-negative integer) quantiles

min

minimum value of distribution (integer)

max

maximum value of distribution (integer)

q

vector of quantiles

p

vector of probabilities

n

number of random values to return

Value

ddunif gives the density, pdunif gives the distribution function, qdunif gives the quantile function, rdunif generates random deviates

Examples

1
2
3
4
ddunif(0:1)
pdunif(1)
qdunif(.5)
rdunif(10)

Example output

[1] 0.5 0.5
[1] 1
[1] 1
 [1] 0 1 1 0 0 1 1 0 0 1

fitur documentation built on May 2, 2019, 6:37 a.m.