| ReferenceMeasureDiscrete | R Documentation |
A discrete reference measure is a measure on a discrete support.
ReferenceMeasureDiscrete(
X,
p = rep(1/length(X), length(X)),
sampler = NULL,
support = Support(X = X)
)
X |
either a complete vector or list of all possible values or a subset that can be used as a sample. In this case the support shall be given. |
p |
is either vector of probability values, or a function mapping a value to its probability. Currently only uniform distributions are supported |
sampler |
a function of a number of random realizations, that samples ffrom this measure. |
support |
the support to be used for the ReferenceMeasure |
An object of type ReferenceMeasureDiscrete encapsulating this measure
Other ReferenceMeasures:
B2N01,
ReferenceMeasureTransformed(),
ReferenceMeasureUniform(),
StdReferenceMeasureUnif01,
expectation(),
getSample(),
isInDomain()
X <- c("A","B","C")
( rmd <- ReferenceMeasureDiscrete(X) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.