rgamma {FLCore} | R Documentation

## Method rgamma

### 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-class

### Examples

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

[Package FLCore version 2.2 Index]