Learn R Programming

HistDAWass (version 1.0.8)

get.m: Method get.m: the mean of a distribution

Description

This functon return the mean of a distributionH object.

Usage

get.m(object)

# S4 method for distributionH get.m(object)

Value

A numeric value

Arguments

object

a distributionH object

Examples

Run this code
D <- distributionH(x = c(1, 2, 3, 4), p = c(0, 0.2, 0.6, 1))
get.m(D) # returns the mean of D

Run the code above in your browser using DataLab