normal_approx: Moment-Matching Normal Approximation
Description
Constructs a normal (or multivariate normal) distribution that matches
the mean and variance-covariance of the input distribution. This is
useful as a quick Gaussian approximation for any distribution whose
first two moments are available.
Usage
normal_approx(x)
Value
A normal distribution (for univariate inputs) or an
mvn distribution (for multivariate inputs) with the same
mean and variance-covariance as x.