View source: R/distributions.R
tfd_blockwise | R Documentation |
Blockwise distribution
tfd_blockwise( distributions, dtype_override = NULL, validate_args = FALSE, allow_nan_stats = FALSE, name = "Blockwise" )
distributions |
list of Distribution instances. All distribution instances must have the same batch_shape and all must have 'event_ndims==1“, i.e., be vector-variate distributions. |
dtype_override |
samples of distributions will be cast to this dtype. If
unspecified, all distributions must have the same dtype. Default value:
|
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.