do.get.means: Internal function for subclasses to get means of the...

do.get.meansR Documentation

Internal function for subclasses to get means of the variables in a distribution

Description

This function is provided to be overriden by developers. End users should instead call get.means

Usage

do.get.means(dist, n.sim = 1000)

Arguments

dist

An object of class Distribution or a subclass

n.sim

If the values are to be calculated by random sample generation, how many random samples to generate

Details

The default implementation generates random samples and takes the sample mean for each variable. The wrapper get.means takes care of formatting the return value and generating warnings for any improper variables

Value

A numeric vector with a mean for each variable in the distribution


tfojo1/distributions documentation built on July 27, 2024, 3:29 p.m.