zipfpeMean: Expected value of the Zipf-PE distribution.

Description Usage Arguments Details Value Examples

View source: R/zipfpeMean.R

Description

Computes the expected value of the Zipf-PE distribution for given values of parameters α and β.

Usage

1
zipfpeMean(alpha, beta, tolerance = 10^(-4))

Arguments

alpha

Value of the α parameter (α > 2).

beta

Value of the β parameter (β \in (-∞, +∞)).

tolerance

Tolerance used in the calculations (default = 10^{-4}).

Details

The mean of the distribution only exists for α strictly greater than 2. It is computed by calculating the partial sums of the serie, and stopping when two consecutive partial sums differ less than the tolerance value. The value of the last partial sum is returned.

Value

A positive real value corresponding to the mean value of the Zipf-PE distribution.

Examples

1
2
zipfpeMean(2.5, 1.3)
zipfpeMean(2.5, 1.3, 10^(-3))

zipfextR documentation built on July 8, 2020, 6:23 p.m.