foldednorm.mean {VBsparsePCA} | R Documentation |
This function calculates the mean of the folded normal distribution given its location and scale parameters.
foldednorm.mean(mean, var)
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 \mu
and scale \sigma^2
is
\sigma \sqrt{2/\pi} \exp(-\mu^2/(2\sigma^2)) + \mu (1-2\Phi(-\mu/\sigma))
.
foldednorm.mean |
The mean of the folded normal distribution of iterations to reach convergence. |
#Calculates the mean of the folded normal distribution with mean 0 and var 1
mean <- foldednorm.mean(0, 1)
print(mean)