setEmpirical<- | R Documentation |
Set the list of values and corresponding probabilities (Pr(X<value) for continuous variable and Pr(X==value) for discrete variable). It is only used for empirical distribution.
setEmpirical(this, ...) <- value ## S4 replacement method for signature 'Distribution,matrix' setEmpirical(this) <- value
this |
Distribution Object |
... |
Additional function arguments. |
value |
Two-column matrix with values and probabilities dist <- new("Normal") setEmpirical(dist) <- matrix(c(0.01,0.25,0.5,0.75,0.99, 11,12,13,14,15), nrow = 5, ncol = 2) dist |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.