| caseE | R Documentation |
Ideally this should always be called on the original samples.
caseE(x, X, ...)
## S3 method for class 'BDataSamples'
caseE(x, X, ...)
## S3 method for class 'BData'
caseE(x, X, ...)
x |
the dataset of distributions, |
X |
the real random variable, i.e. a real function define on whats random in the distributions |
... |
further arguments to called functions (e.g. quantile) |
a vector, matrix or with the Expected values for each element of x. if the expected value is multivariate the last dimension iterates over the cases in x.
caseE(BDataSamples): method for BDataSamples simply uses means
caseE(BData): method for distributions
Other caseStatistics:
caseLogRatios(),
caseMeans(),
caseQuantiles(),
caseSds(),
caseVars(),
centralityQuantile(),
distanceToCenter(),
median.BData(),
spatialDepth()
data(DTD)
X = BDataSamples(DTD$data %.% shape,basis=B2Unif01Basis5)
caseE(X,X=function(x) x,probs=c(0.25,0.75))
caseE(X,X=function(x) x^2,probs=0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.