fnDiscretizeGamma - Discretize a Gamma distribution
| shape : | RealPos (pass by const reference) |
| The shape parameter of the gamma distribution. | |
| rate : | RealPos (pass by const reference) |
| The rate parameter (rate = 1/scale) of the gamma distribution | |
| numCats : | Integer (pass by value) |
| The number of categories. | |
| median : | Bool (pass by value) |
| Should we use the median or mean? | |
| Default : FALSE |
# to obtain the mean of the quantiles
alpha = 0.5
discrete_values := fnDiscretizeGamma( shape = alpha, rate = alpha, numCats = 4, median = FALSE )