meanH | R Documentation |
meanH
: computes the mean of a distributionMean of a histogram (First moment of the distribution)
meanH(object) ## S4 method for signature 'distributionH' meanH(object)
object |
a |
the mean of the distribution
Antonio Irpino
## ---- A mydist distribution ---- mydist <- distributionH(x = c(1, 2, 3, 10), p = c(0, 0.1, 0.5, 1)) ## ---- Compute the mean of mydist ---- meanH(mydist) #---> 4.4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.