tf.contrib.distributions.QuantizedDistribution.cdf(value, name='cdf')
Cumulative distribution function.
Given random variable X
, the cumulative distribution function cdf
is:
cdf(x) := P[X <= x]
Additional documentation from QuantizedDistribution
:
For whole numbers y
,
cdf(y) := P[Y <= y] = 1, if y >= upper_cutoff, = 0, if y < lower_cutoff, = P[X <= y], otherwise.
Since Y
only has mass at whole numbers, P[Y <= y] = P[Y <= floor(y)]
. This dictates that fractional y
are first floored to a whole number, and then above definition applies.
The base distribution's cdf
method must be defined on y - 1
.
Args:
-
value
:float
ordouble
Tensor
. -
name
: The name to give this op.
Returns:
-
cdf
: aTensor
of shapesample_shape(x) + self.batch_shape
with values of typeself.dtype
.
Please login to continue.