Description Usage Arguments Details Value Author(s) Examples
Calculate expectation of Truncated Normal distributions
1 2 |
.mean |
Length K vector with the means of the K Normal distributions prior to truncation |
.sd |
Length K vector with the standard deviations of the K Normal distributions prior to truncation |
.low |
Length K vector with the lower truncation bound of the K Normal distributions prior to truncation |
.high |
Length K vector with the upper truncation bound of the K Normal distributions prior to truncation |
.checks |
Length 1 logical vector indicating whether to perform checks (safer) or not (faster) on the input parameters |
The special values of -Inf and Inf are valid values in the .low and .high arguments, respectively.
A length K vector of expectations corresponding to the Truncated Normal distributions. NAs are returned (with a warning) for invalid parameter values.
Jonathan Olmsted
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.