tf.contrib.distributions.QuantizedDistribution.survival_function(value, name='survival_function')
Survival function.
Given random variable X
, the survival function is defined:
survival_function(x) = P[X > x] = 1 - P[X <= x] = 1 - cdf(x).
Additional documentation from QuantizedDistribution
:
For whole numbers y
,
survival_function(y) := P[Y > y] = 0, if y >= upper_cutoff, = 1, 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:
Tensorof shape
sample_shape(x) + self.batch_shapewith values of type
self.dtype`.
Please login to continue.