RandomExtensions Class

Note: This API is now obsolete.
Provides legacy extension methods for distribution sampling.

Definition

Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
C#
[ObsoleteAttribute("This class is deprecated. Use RandomSamplingExtensions instead for distribution sampling.")]
public static class RandomExtensions
Inheritance
Object  →  RandomExtensions

Remarks

This class is deprecated and kept only for backward compatibility. It will be removed in a future release. New code should use RandomSamplingExtensions instead.

Methods

CorrelatedSamples Generates a series of random variables with the specified correlation matrix.
Fill(Random, Vector<Double>, ContinuousDistribution) Fills a vector with random samples from the specified continuous distribution.
Fill(Random, Vector<Double>, DiscreteDistribution) Fills a vector with random samples from the specified discrete distribution.
Fill(Random, Double[], ContinuousDistribution) Fills an array with random samples from the specified continuous distribution.
Fill(Random, Int32[], DiscreteDistribution) Fills an array with random samples from the specified discrete distribution.
Fill(Random, Span<Double>, ContinuousDistribution) Fills a span with random samples from the specified continuous distribution.
Fill(Random, Span<Int32>, DiscreteDistribution) Fills a span with random samples from the specified discrete distribution.
Fill(Random, Double[], Int32, Int32) Fills part of an array with uniform random samples.
Obsolete
Fill(Random, Int32[], Int32, Int32) Fills part of an array with random integer samples.
Obsolete
Fill(Random, Double[], Int32, Int32, ContinuousDistribution) Fills part of an array with random samples from the specified continuous distribution.
Obsolete
Fill(Random, Int32[], Int32, Int32, DiscreteDistribution) Fills part of an array with random samples from the specified discrete distribution.
Obsolete
Next Returns a sample from the specified discrete distribution.
NextDouble Returns a sample from the specified continuous distribution.

See Also