mxnet.gluon.probability.distributions.cauchy

Cauchy distribution

Classes

Cauchy([loc, scale, validate_args])

Create a relaxed Cauchy distribution object.

class mxnet.gluon.probability.distributions.cauchy.Cauchy(loc=0.0, scale=1.0, validate_args=None)[source]

Bases: Distribution

Create a relaxed Cauchy distribution object.

Parameters:
  • loc (Tensor or scalar, default 0) – mode or median of the distribution

  • scale (Tensor or scalar, default 1) – half width at half maximum

cdf(value)[source]

Returns the cumulative density/mass function evaluated at value.

entropy()[source]

Returns entropy of distribution.

icdf(value)[source]

Returns the inverse cumulative density/mass function evaluated at value.

log_prob(value)[source]

Returns the log of the probability density/mass function evaluated at value.

property mean

Returns the mean of the distribution.

sample(size=None)[source]

Generates a shape shaped sample.

sample_n(size=None)[source]

Generate samples of (n + parameter_shape) from the distribution.

property variance

Returns the variance of the distribution.