tf.contrib.distributions.QuantizedDistribution.prob(value, name='prob')
Probability density/mass function (depending on is_continuous
).
Additional documentation from QuantizedDistribution
:
For whole numbers y
,
P[Y = y] := P[X <= lower_cutoff], if y == lower_cutoff, := P[X > upper_cutoff - 1], y == upper_cutoff, := 0, if j < lower_cutoff or y > upper_cutoff, := P[y - 1 < X <= y], all other y.
The base distribution's cdf
method must be defined on y - 1
. If the base distribution has a survival_function
method, results will be more accurate for large values of y
, and in this case the survival_function
must also be defined on y - 1
.
Args:
-
value
:float
ordouble
Tensor
. -
name
: The name to give this op.
Returns:
-
prob
: aTensor
of shapesample_shape(x) + self.batch_shape
with values of typeself.dtype
.
Please login to continue.