diff --git a/FastRng/Double/Distributions/Cauchy.cs b/FastRng/Double/Distributions/CauchyLorentz.cs similarity index 94% rename from FastRng/Double/Distributions/Cauchy.cs rename to FastRng/Double/Distributions/CauchyLorentz.cs index e5b75a1..96d0c04 100644 --- a/FastRng/Double/Distributions/Cauchy.cs +++ b/FastRng/Double/Distributions/CauchyLorentz.cs @@ -4,7 +4,7 @@ using System.Threading.Tasks; namespace FastRng.Double.Distributions { - public sealed class Cauchy : IDistribution + public sealed class CauchyLorentz : IDistribution { private double scale = 1.0; diff --git a/FastRngTests/Double/Distributions/Cauchy.cs b/FastRngTests/Double/Distributions/CauchyLorentz.cs similarity index 90% rename from FastRngTests/Double/Distributions/Cauchy.cs rename to FastRngTests/Double/Distributions/CauchyLorentz.cs index 4cf6311..4952576 100644 --- a/FastRngTests/Double/Distributions/Cauchy.cs +++ b/FastRngTests/Double/Distributions/CauchyLorentz.cs @@ -8,7 +8,7 @@ using NUnit.Framework; namespace FastRngTests.Double.Distributions { [ExcludeFromCodeCoverage] - public class Cauchy + public class CauchyLorentz { public void TestCauchyDistribution01() { @@ -24,7 +24,7 @@ namespace FastRngTests.Double.Distributions var rng = new MultiThreadedRng(); var samples = new double[1_000]; for (var n = 0; n < samples.Length; n++) - samples[n] = await rng.NextNumber(-1.0, 1.0, new FastRng.Double.Distributions.Cauchy()); + samples[n] = await rng.NextNumber(-1.0, 1.0, new FastRng.Double.Distributions.CauchyLorentz()); rng.StopProducer(); Assert.That(samples.Min(), Is.GreaterThanOrEqualTo(-1.0), "Min is out of range"); @@ -39,7 +39,7 @@ namespace FastRngTests.Double.Distributions var rng = new MultiThreadedRng(); var samples = new double[1_000]; for (var n = 0; n < samples.Length; n++) - samples[n] = await rng.NextNumber(0.0, 1.0, new FastRng.Double.Distributions.Cauchy()); + samples[n] = await rng.NextNumber(0.0, 1.0, new FastRng.Double.Distributions.CauchyLorentz()); rng.StopProducer(); Assert.That(samples.Min(), Is.GreaterThanOrEqualTo(0.0), "Min is out of range"); @@ -51,7 +51,7 @@ namespace FastRngTests.Double.Distributions [Category(TestCategories.NORMAL)] public void ParameterTest01() { - var dist = new FastRng.Double.Distributions.Cauchy(); + var dist = new FastRng.Double.Distributions.CauchyLorentz(); Assert.Throws(() => dist.Scale = 0); Assert.Throws(() => dist.Scale = -78); @@ -68,7 +68,7 @@ namespace FastRngTests.Double.Distributions [Category(TestCategories.NORMAL)] public async Task NoRandomNumberGenerator01() { - var dist = new FastRng.Double.Distributions.Cauchy(); + var dist = new FastRng.Double.Distributions.CauchyLorentz(); Assert.DoesNotThrowAsync(async () => await dist.GetDistributedValue()); Assert.That(await dist.GetDistributedValue(), Is.NaN); }