public void ConstructorTest12()
{
var original = new GompertzDistribution(eta: 4.2, b: 1.1);
var gompertz = GeneralContinuousDistribution.FromDensityFunction(
original.Support, original.ProbabilityDensityFunction);
for (double i = -10; i < +7; i += 0.1)
{
double expected = original.DistributionFunction(i);
double actual = gompertz.DistributionFunction(i);
Assert.IsTrue(expected.IsRelativelyEqual(actual, 1e-3));
Assert.IsFalse(double.IsNaN(expected));
Assert.IsFalse(double.IsNaN(actual));
}
testGompertz(gompertz);
}