| simulate.ReferenceMeasureDiscrete | R Documentation |
The simulation is done by the r function sample
## S3 method for class 'ReferenceMeasureDiscrete'
simulate(object, nsim = 1, seed = NULL, ...)
object |
the ReferenceMeasureDiscrete object |
nsim |
the number of simulations |
seed |
optional seed, if set it is used and reported as attribute in the simulation (use with care). |
... |
further unused generic arguments |
a vector (or list) of length nsim with of random variables with the given distribution
set.seed(4)
aDiscreteMeasure = ReferenceMeasureDiscrete(c(0.2,0.3,0.4),X=c("A","B","C"))
simulate(aDiscreteMeasure,10,seed=2)
simulate(aDiscreteMeasure,10)
simulate(aDiscreteMeasure,10,seed=2)
simulate(aDiscreteMeasure,10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.