meanH-methods: Method 'meanH': computes the mean of a distribution

Description Usage Arguments Value Author(s) Examples

Description

Method meanH: computes the mean of a distribution

Mean of a histogram (First moment of the distribution)

Usage

1
2
3
4
meanH(object)

## S4 method for signature 'distributionH'
meanH(object)

Arguments

object

a distributionH object

Value

the mean of the distribution

Author(s)

Antonio Irpino

Examples

1
2
3
4
##---- 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

HistDAWass documentation built on March 20, 2018, 5:04 p.m.