bg__fit_gamma: Fit Gamma Distribution

Description Usage Arguments Details Value Examples

Description

Fits the parameters of a gamma distribution to a set of observations

Usage

1

Arguments

x

vector of observations to fit.

Details

scale = var(x)/mean(x) shape = mean(x)/scale

Value

list with two entries: shape and size.

Examples

1
2
# dat <- rgamma(100, 0.1, 1)
# params <- bg__fit_gamma(dat)

tallulandrews/M3D documentation built on May 31, 2019, 2:55 a.m.