illustrateCLT {distrEx}R Documentation

Generic Function for Illustrating the CLT

Description

Generic function for generating a sequence of plots of the density and cdf of the consecutive standardized and centered sums of iid r.v. distributed according to a prescribed discrete or absolutely continuous distribution compared to the standard normal.

Usage

illustrateCLT(Distr, ...)
## S4 method for signature 'AbscontDistribution':
illustrateCLT(Distr, len, sleep = 0)
## S4 method for signature 'DiscreteDistribution':
illustrateCLT(Distr, len, sleep = 0)

Arguments

Distr object of class "AbscontDistribution" or class "DiscreteDistribution": distribution of the summands
len integer: up to which number of summands plots are generated
sleep numeric: pause between subsequent plots
... addtional arguments for methods not yet implemented

Value

void

Author(s)

Matthias Kohl Matthias.Kohl@stamats.de

Examples

distroptions("DefaultNrFFTGridPointsExponent" = 13)
illustrateCLT(Distr = Unif(), len = 20)
distroptions("DefaultNrFFTGridPointsExponent" = 12)
illustrateCLT(Distr = Pois(lambda = 2), len = 20)
distroptions("DefaultNrFFTGridPointsExponent" = 13)
illustrateCLT(Distr = Pois(lambda = 2)+Unif(), len = 20)

[Package distrEx version 0.4-3 Index]