doSample | R Documentation |
Sampling from the distribution.
doSample(object, n, ...) ## S4 method for signature 'Normal,numeric' doSample(object, n) ## S4 method for signature 'Beta,numeric' doSample(object, n) ## S4 method for signature 'Exponential,numeric' doSample(object, n) ## S4 method for signature 'Gamma,numeric' doSample(object, n) ## S4 method for signature 'Lognormal,numeric' doSample(object, n) ## S4 method for signature 'Pareto,numeric' doSample(object, n) ## S4 method for signature 'Poisson,numeric' doSample(object, n) ## S4 method for signature 'NegativeBinomial,numeric' doSample(object, n) ## S4 method for signature 'Geometric,numeric' doSample(object, n) ## S4 method for signature 'Uniform,numeric' doSample(object, n) ## S4 method for signature 'Weibull,numeric' doSample(object, n) ## S4 method for signature 'Empirical,numeric' doSample(object, n)
object |
A Distribution Object |
n |
Number of samples |
... |
Additional function arguments |
xPareto <- new("Pareto",p1=20,p2=3) doSample(xPareto,10000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.