Signal Math.Generate Gaussian Noise Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
Overload List
| Generate | Generates Gaussian white noise. |
| Generate | Generates Gaussian white noise. |
| Generate | Generates Gaussian white noise and returns it as a vector. |
| Generate | Generates Gaussian white noise with DC offset. |
| Generate | Generates Gaussian white noise with DC offset. |
| Generate | Generates Gaussian white noise with DC offset and returns it as a vector. |
| Generate | Generates Gaussian white noise. |
| Generate | Generates Gaussian white noise with DC offset. |
GenerateGaussianNoise(Double, IRandomSource, Span<Double>)
Generates Gaussian white noise.
public static void GenerateGaussianNoise(
double standardDeviation,
IRandomSource rng,
Span<double> destination
)Parameters
- standardDeviation Double
- The standard deviation of the noise.
- rng IRandomSource
- The random number generator to use.
- destination Span<Double>
- The destination span to write the generated signal.
GenerateGaussianNoise(Double, Random, Span<Double>)
Generates Gaussian white noise.
public static void GenerateGaussianNoise(
double standardDeviation,
Random rng,
Span<double> destination
)Parameters
GenerateGaussianNoise<TGenerator>(Double, IRandomSource<TGenerator>, Span<Double>)
Generates Gaussian white noise.
public static void GenerateGaussianNoise<TGenerator>(
double standardDeviation,
IRandomSource<TGenerator> rng,
Span<double> destination
)
where TGenerator : struct, new(), IRandomGenerator
Parameters
- standardDeviation Double
- The standard deviation of the noise.
- rng IRandomSource<TGenerator>
- The random number generator to use.
- destination Span<Double>
- The destination span to write the generated signal.
Type Parameters
- TGenerator
- The underlying generator type of the random source, used to enable optimizations like inlining.
GenerateGaussianNoise(Int32, Double, Random)
Generates Gaussian white noise and returns it as a vector.
public static Vector<double> GenerateGaussianNoise(
int count,
double standardDeviation,
Random rng
)Parameters
- count Int32
- The number of samples to generate.
- standardDeviation Double
- The standard deviation of the noise.
- rng Random
- The random number generator to use.
Return Value
Vector<Double>A vector containing the generated signal.
GenerateGaussianNoise(Double, Double, IRandomSource, Span<Double>)
Generates Gaussian white noise with DC offset.
public static void GenerateGaussianNoise(
double standardDeviation,
double offset,
IRandomSource rng,
Span<double> destination
)Parameters
- standardDeviation Double
- The standard deviation of the noise.
- offset Double
- The DC offset to add to the signal.
- rng IRandomSource
- The random number generator to use.
- destination Span<Double>
- The destination span to write the generated signal.
GenerateGaussianNoise(Double, Double, Random, Span<Double>)
Generates Gaussian white noise with DC offset.
public static void GenerateGaussianNoise(
double standardDeviation,
double offset,
Random rng,
Span<double> destination
)Parameters
GenerateGaussianNoise<TGenerator>(Double, Double, IRandomSource<TGenerator>, Span<Double>)
Generates Gaussian white noise with DC offset.
public static void GenerateGaussianNoise<TGenerator>(
double standardDeviation,
double offset,
IRandomSource<TGenerator> rng,
Span<double> destination
)
where TGenerator : struct, new(), IRandomGenerator
Parameters
- standardDeviation Double
- The standard deviation of the noise.
- offset Double
- The DC offset to add to the signal.
- rng IRandomSource<TGenerator>
- The random number generator to use.
- destination Span<Double>
- The destination span to write the generated signal.
Type Parameters
- TGenerator
- The underlying generator type of the random source, used to enable optimizations like inlining.
GenerateGaussianNoise(Int32, Double, Double, Random)
Generates Gaussian white noise with DC offset and returns it as a vector.
public static Vector<double> GenerateGaussianNoise(
int count,
double standardDeviation,
double offset,
Random rng
)Parameters
- count Int32
- The number of samples to generate.
- standardDeviation Double
- The standard deviation of the noise.
- offset Double
- The DC offset to add to the signal.
- rng Random
- The random number generator to use.
Return Value
Vector<Double>A vector containing the generated signal.