A (symmetric) generalized normal continuous random variable.
As an instance of the rv_continuous class, gennorm object inherits from it
a collection of generic methods (see below for the full list),
and completes them with details specific for this particular distribution.
The (symmetric) generalized normal distribution is also known as the
Subbotin distribution, exponential power distribution, and generalized
error distribution [1].
The probability density function for gennorm is [1]:
where \(x\) is a real number, \(\beta > 0\) and
\(\Gamma\) is the gamma function (scipy.special.gamma).
gennorm takes beta as a shape parameter for \(\beta\).
For \(\beta = 1\), it is identical to a Laplace distribution.
For \(\beta = 2\), it is identical to a normal distribution
(with scale=1/sqrt(2)).
Nardon, Martina, and Paolo Pianca. "Simulation techniques for
generalized Gaussian densities." Journal of Statistical
Computation and Simulation 79.11 (2009): 1317-1329
Alternatively, the distribution object can be called (as a function)
to fix the shape, location and scale parameters. This returns a "frozen"
RV object holding the given parameters fixed.
Freeze the distribution and display the frozen pdf: