LostTech.TensorFlow : API Documentation

Type Laplace

Namespace tensorflow.distributions

Parent Distribution

Interfaces ILaplace

The Laplace distribution with location `loc` and `scale` parameters.

#### Mathematical details

The probability density function (pdf) of this distribution is,

```none pdf(x; mu, sigma) = exp(-|x - mu| / sigma) / Z Z = 2 sigma ```

where `loc = mu`, `scale = sigma`, and `Z` is the normalization constant.

Note that the Laplace distribution can be thought of two exponential distributions spliced together "back-to-back."

The Lpalce distribution is a member of the [location-scale family]( https://en.wikipedia.org/wiki/Location-scale_family), i.e., it can be constructed as,

```none X ~ Laplace(loc=0, scale=1) Y = loc + scale * X ```

Properties

Public properties

object allow_nan_stats get;

object allow_nan_stats_dyn get;

TensorShape batch_shape get;

object batch_shape_dyn get;

object dtype get;

object dtype_dyn get;

TensorShape event_shape get;

object event_shape_dyn get;

object loc get;

Distribution parameter for the location.

object loc_dyn get;

Distribution parameter for the location.

string name get;

object name_dyn get;

IDictionary<object, object> parameters get;

object parameters_dyn get;

object PythonObject get;

object reparameterization_type get;

object reparameterization_type_dyn get;

object scale get;

Distribution parameter for scale.

object scale_dyn get;

Distribution parameter for scale.

object validate_args get;

object validate_args_dyn get;