tf.contrib.distributions.QuantizedDistribution.cdf()

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 or double Tensor.
  • name: The name to give this op.
Returns:
  • cdf: a Tensor of shape sample_shape(x) + self.batch_shape with values of type self.dtype.
doc_TensorFlow
2016-10-14 13:01:19
Comments
Leave a Comment

Please login to continue.