View source: R/distributions.R
tfd_logit_normal | R Documentation |
The Logit-Normal distribution models positive-valued random variables whose
logit (i.e., sigmoid_inverse, i.e., log(p) - log1p(-p)
) is normally
distributed with mean loc
and standard deviation scale
. It is
constructed as the sigmoid transformation, (i.e., 1 / (1 + exp(-x))
) of a
Normal distribution.
tfd_logit_normal( loc, scale, validate_args = FALSE, allow_nan_stats = TRUE, name = "LogitNormal" )
loc |
Floating point tensor; the means of the distribution(s). |
scale |
loating point tensor; the stddevs of the distribution(s). Must contain only positive values. |
validate_args |
Logical, 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 |
Logical, 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. |
name |
name prefixed to Ops created by this class. |
a distribution instance.
For usage examples see e.g. tfd_sample()
, tfd_log_prob()
, tfd_mean()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.