large_gamma
- hcipy.util.large_gamma(lam, theta, thresh=1000000.0)
Draw samples from a Gamma distribution, taking care of large values of lam.
At large values of lam the distribution automatically switches to the corresponding normal distribution. This switch is independently decided for each expectation value in the lam array.
- Parameters:
- lamarray_like
The shape parameter distribution. Must be >= 0.
- thetaarray_like
The scale parameter of the Gamma distribution.
- threshfloat
The threshold at which the distribution switched from a Gamma to a normal distribution.
- Returns:
- array_like
The drawn samples from the Gamma or normal distribution, depending on the expectation value.