public void NormalGenerateTest()
{
// Create a Normal with mean 2 and sigma 5
var normal = new NormalDistribution(2, 5);
// Generate 1000000 samples from it
double[] samples = normal.Generate(1000000);
// Try to estimate a new Normal distribution from the
// generated samples to check if they indeed match
var actual = NormalDistribution.Estimate(samples);
string result = actual.ToString("N2"); // N(x; μ = 2.01, σ² = 25.03)
Assert.AreEqual("N(x; μ = 2.01, σ² = 25.03)", result);
}