# NOT RUN {
##Test whether a typical sample follows PD:
x<-rPD(100,10)
is.PD(x, 100)
##Test whether a very atypical sample where frequencies of different values
## are similar:
x<-c(rep(1, 200), rep(2, 200), rep(3, 200), rep(4, 200), rep(5,200))
is.PD(x,50)
# }
Run the code above in your browser using DataLab