rMPG: Generates samples from Modfified Ploya Gamma (MPG)...

Description Usage Arguments Value Examples

View source: R/rMPG.r

Description

Generates samples from Modfified Ploya Gamma (MPG) distribution.

Usage

1
rMPG(n = 1, alpha, nu, Num_of_Terms = 200, eps_accuracy = 1e-05)

Arguments

n:

Number of samples to be generated.

alpha:

A positive real number.

nu:

A positive real number, order of the MPG distribution.

Num_of_Terms:

Integer greater than 50. Number of Terms added in the series represantion of the density.

Value

Samples from the MPG(n, alpha, nu) distribution.

Examples

1
2
3
library(Bessel)
data=rMPG(n=1000, alpha=5, nu=0)
#' data=rMPG(n=1000, alpha=50, nu=0)

subhadippal2019/BVNF documentation built on March 12, 2021, 10:05 p.m.