pdiscunif

0th

Percentile

Discrete Uniform Distribution

Discrete Uniform Distribution

Keywords
distribution
Usage
pdiscunif(q, size)
qdiscunif(p, size)
ddiscunif(q, size)
rdiscunif(n, size)
Arguments
size

parameter of distribution. Numbers from 1 to size are equally likely.

q

Quantiles.

p

Probability.

n

number of items in the random sample.

Aliases
  • pdiscunif
  • qdiscunif
  • ddiscunif
  • rdiscunif
Examples
# NOT RUN {
  q <- seq(-.5, 7.5, .5)

  pp <- pdiscunif(q, 6)

  ## xyplot(pp ~ q,
  ##        scales=list(
  ##        x=list(at=floor(min(q)):ceiling(max(q))),
  ##        y=list(at=seq(0, 1, .1))))

  qq <- qdiscunif(pp, 6)

  dd <- ddiscunif(q, 6)

  cbind(q, pp, qq, dd)

  rdiscunif(12, 6)
# }
Documentation reproduced from package HH, version 3.1-35, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.