properGeneralizedInverseGaussianVariance

Variance of the generalized inverse Gaussian distribution

T
properGeneralizedInverseGaussianVariance
(
T
)
()

Examples

1 import std.math : approxEqual;
2 auto expectation     = properGeneralizedInverseGaussianMean!double(2.0, 3.0, 4.0);
3 auto secondRowMoment = properGeneralizedInverseGaussianMean!double(2.0, 3.0, 4.0, 2);
4 auto variance        = properGeneralizedInverseGaussianVariance!double(2.0, 3.0, 4.0);
5 assert(approxEqual(secondRowMoment - expectation^^2, variance));

Meta