diff --git a/src/Numerics/Generate.cs b/src/Numerics/Generate.cs
index bbbbf6f8..bf5b04c7 100644
--- a/src/Numerics/Generate.cs
+++ b/src/Numerics/Generate.cs
@@ -800,10 +800,26 @@ namespace MathNet.Numerics
}
}
+ ///
+ /// Create samples with independent amplitudes of standard distribution.
+ ///
+ public static double[] Standard(int length)
+ {
+ return Normal(length, 0.0, 1.0);
+ }
+
+ ///
+ /// Create an infinite sample sequence with independent amplitudes of standard distribution.
+ ///
+ public static IEnumerable StandardSequence()
+ {
+ return NormalSequence(0.0, 1.0);
+ }
+
///
/// Create samples with independent amplitudes of normal distribution and a flat spectral density.
///
- public static double[] Gaussian(int length, double mean, double standardDeviation)
+ public static double[] Normal(int length, double mean, double standardDeviation)
{
if (length < 0)
{
@@ -811,16 +827,34 @@ namespace MathNet.Numerics
}
var samples = new double[length];
- Normal.Samples(SystemRandomSource.Default, samples, mean, standardDeviation);
+ Distributions.Normal.Samples(SystemRandomSource.Default, samples, mean, standardDeviation);
return samples;
}
///
/// Create an infinite sample sequence with independent amplitudes of normal distribution and a flat spectral density.
///
+ public static IEnumerable NormalSequence(double mean, double standardDeviation)
+ {
+ return Distributions.Normal.Samples(SystemRandomSource.Default, mean, standardDeviation);
+ }
+
+ ///
+ /// Create samples with independent amplitudes of normal distribution and a flat spectral density.
+ ///
+ [Obsolete("Use Normal instead. Will be removed in v4.")]
+ public static double[] Gaussian(int length, double mean, double standardDeviation)
+ {
+ return Normal(length, mean, standardDeviation);
+ }
+
+ ///
+ /// Create an infinite sample sequence with independent amplitudes of normal distribution and a flat spectral density.
+ ///
+ [Obsolete("Use NormalSequence instead. Will be removed in v4.")]
public static IEnumerable GaussianSequence(double mean, double standardDeviation)
{
- return Normal.Samples(SystemRandomSource.Default, mean, standardDeviation);
+ return NormalSequence(mean, standardDeviation);
}
///
@@ -831,6 +865,7 @@ namespace MathNet.Numerics
/// Skewness beta-parameter of the stable distribution
/// Scale c-parameter of the stable distribution
/// Location mu-parameter of the stable distribution
+ [Obsolete("Will be removed in v4.")]
public static double[] Stable(int length, double alpha, double beta, double scale, double location)
{
if (length < 0)
@@ -850,6 +885,7 @@ namespace MathNet.Numerics
/// Skewness beta-parameter of the stable distribution
/// Scale c-parameter of the stable distribution
/// Location mu-parameter of the stable distribution
+ [Obsolete("Will be removed in v4.")]
public static IEnumerable StableSequence(double alpha, double beta, double scale, double location)
{
return Distributions.Stable.Samples(SystemRandomSource.Default, alpha, beta, scale, location);