tfp.edward2.Triangular

Create a random variable for Triangular.

See Triangular for more details.

RandomVariable.

Original Docstring for Distribution

Initialize a batch of Triangular distributions.

low Floating point tensor, lower boundary of the output interval. Must have low < high. Default value: 0.
high Floating point tensor, upper boundary of the output interval. Must have low < high. Default value: 1.
peak Floating point tensor, mode of the output interval. Must have low <= peak and peak <= high. Default value: 0.5.
validate_args Python bool, default False. When True distribution parameters are checked for validity despite possibly degrading runtime performance. When False invalid inputs may silently render incorrect outputs. Default value: False.
allow_nan_stats Python bool, default True. When True, statistics (e.g., mean, mode, variance) use the value "NaN" to indicate the result is undefined. When False, an exception is raised if one or more of the statistic's batch members are undefined. Default value: True.
name Python str name prefixed to Ops created by this class. Default value: 'Triangular'.

InvalidArgumentError if validate_args=True and one of the following is True:

  • low >= high.
  • peak > high.
  • low > peak.