Random Sampling Extensions Class
Provides extension methods for sampling probability distributions.
Definition
Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
public static class RandomSamplingExtensions- Inheritance
- Object → RandomSamplingExtensions
Remarks
These extensions make it easy to generate random samples from Numerics.NET probability distributions, including efficient span-based sampling APIs.
All methods require an explicit distribution parameter, ensuring clear intent and consistent API design. Methods delegate to the distribution's internal sampling implementation for optimal performance.
Methods
| Correlated | Generates a series of random variables with the specified correlation matrix. |
| Correlated | Generates a series of random variables with the specified correlation matrix. |
| Correlated | Generates a series of random variables with the specified correlation matrix. |
| Fill( | Fills a vector with random samples from the specified continuous distribution. |
| Fill( | Fills a span with random samples from the specified continuous distribution. |
| Fill( | Fills a span with random samples from the specified discrete distribution. |
| Fill( | Fills a vector with random samples from the specified continuous distribution. |
| Fill( | Fills a span with random samples from the specified continuous distribution. |
| Fill( | Fills a span with random samples from the specified discrete distribution. |
| Fill<TGenerator>(IRandomSource<TGenerator>, Vector<Double>, ContinuousDistribution) | Fills a vector with random samples from the specified continuous distribution. |
| Fill<TGenerator>(IRandomSource<TGenerator>, Vector<Int32>, DiscreteDistribution) | Fills a vector with random samples from the specified continuous distribution. |
| Fill<TGenerator>(IRandomSource<TGenerator>, Span<Double>, ContinuousDistribution) | Fills a span with random samples from the specified continuous distribution. |
| Fill<TGenerator>(IRandomSource<TGenerator>, Span<Int32>, DiscreteDistribution) | Fills a span with random samples from the specified discrete distribution. |
| Next( | Generates a random sample from the specified continuous distribution. |
| Next( | Generates a random sample from the specified discrete distribution. |
| Next( | Generates a random sample from the specified discrete distribution. |
| Next( | Generates an array of random samples from the specified continuous distribution. |
| Next( | Generates an array of random samples from the specified discrete distribution. |
| Next( | Generates an array of random samples from the specified continuous distribution. |
| Next( | Generates an array of random samples from the specified discrete distribution. |
| Next<TGenerator>(IRandomSource<TGenerator>, ContinuousDistribution) | Generates a random sample from the specified continuous distribution. |
| Next<TGenerator>(IRandomSource<TGenerator>, DiscreteDistribution) | Generates a random sample from the specified discrete distribution. |
| Next<TGenerator>(IRandomSource<TGenerator>, ContinuousDistribution, Int32) | Generates an array of random samples from the specified continuous distribution. |
| Next<TGenerator>(IRandomSource<TGenerator>, DiscreteDistribution, Int32) | Generates an array of random samples from the specified discrete distribution. |
| Next | Generates a random sample from the specified continuous distribution. |