rgamma: Method rgamma

Description Generic function Methods Author(s) See Also Examples

Description

Random generation for the Gamma distribution with parameters 'shape' and 'scale'. 'shape' can be of class FLQuantPoint in which case 'shape' and 'scale' are set as mean^2 / var and var / mean^2.

Generic function

rgamma(n,shape,rate,scale)

Methods

signature(n=numeric,shape=FLQuantPoint,rate=missing,scale=missing) :

Returns an FLQuant for Gamma-distributed values.

Author(s)

The FLR Team

See Also

rgamma, FLQuantPoint

Examples

1
2
3
flq <- FLQuant(rnorm(1000,mean=10,sd=2),dim=c(1,10,1,1,1,100))
flqp <- FLQuantPoint(flq)
rgamma(10,shape=flqp)

FLCore documentation built on May 2, 2019, 5:46 p.m.