Home | History | Annotate | Download | only in distributions

Lines Matching defs:Gamma

15 """The Gamma distribution class."""
40 "Gamma",
45 @tf_export("distributions.Gamma")
46 class Gamma(distribution.Distribution):
47 """Gamma distribution.
49 The Gamma distribution is defined over positive real numbers using
58 Z = Gamma(alpha) beta**alpha
66 * `Gamma` is the [gamma function](
72 cdf(x; alpha, beta, x > 0) = GammaInc(alpha, beta x) / Gamma(alpha)
75 where `GammaInc` is the [lower incomplete Gamma function](
94 dist = Gamma(concentration=3.0, rate=2.0)
95 dist2 = Gamma(concentration=[3.0, 4.0], rate=[2.0, 3.0])
105 name="Gamma"):
106 """Construct Gamma with `concentration` and `rate` parameters.
140 super(Gamma, self).__init__(
204 # Note that igamma returns the regularized incomplete gamma function,
233 """The mode of a gamma distribution is `(shape - 1) / rate` when
261 class GammaWithSoftplusConcentrationRate(Gamma):
262 """`Gamma` with softplus of `concentration` and `rate`."""
282 @kullback_leibler.RegisterKL(Gamma, Gamma)
284 """Calculate the batched KL divergence KL(g0 || g1) with g0 and g1 Gamma.
287 g0: instance of a Gamma distribution object.
288 g1: instance of a Gamma distribution object.
300 # http://stats.stackexchange.com/questions/11646/kullback-leibler-divergence-between-two-gamma-distributions pylint: disable=line-too-long