Description Usage Arguments Details Value Examples
View source: R/foldednormalmean.R
This function calculates the mean of the folded normal distribution given its location and scale parameters.
1 |
mean |
Location parameter of the folded normal distribution. |
var |
Scale parameter of the folded normal distribution. |
The mean of the folded normal distribution with location μ and scale σ^2 is
σ √{2/π} \exp(-μ^2/(2σ^2)) + μ (1-2Φ(-μ/σ))
.
foldednorm.mean |
The mean of the folded normal distribution of iterations to reach convergence. |
1 2 3 | #Calculates the mean of the folded normal distribution with mean 0 and var 1
mean <- foldednorm.mean(0, 1)
print(mean)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.