Random Sampling Extensions.Correlated Samples Method
Definition
Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.9.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.9.0
Overload List
| 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. |
CorrelatedSamples(IRandomSource, Int32, Distribution[], SymmetricMatrix<Double>)
Generates a series of random variables with the specified correlation matrix.
Remarks
Uses Iman-Conover rank rearrangement, preserving every sampled marginal
value. The correlation matrix must be finite and positive definite with a unit
diagonal. The sample count must exceed the number of distributions. Singular
normal-score permutations are retried a bounded number of times.
Exceptions
| Argument | The receiver, distributions, or correlations are null. |
| Argument | The sample count is less than two. |
| Insufficient | The sample count does not exceed the number of distributions. |
| Dimension | The matrix dimension differs from the distribution count. |
| Argument | The marginal list is empty, contains null, or the matrix is invalid. |
| Not | A marginal is not a univariate continuous or discrete distribution. |
| Invalid | Independent normal-score permutations could not be generated. |
CorrelatedSamples<TGenerator>(IRandomSource<TGenerator>, Int32, Distribution[], SymmetricMatrix<Double>)
Generates a series of random variables with the specified correlation matrix.
Remarks
Uses Iman-Conover rank rearrangement, preserving every sampled marginal
value. The correlation matrix must be finite and positive definite with a unit
diagonal. The sample count must exceed the number of distributions. Singular
normal-score permutations are retried a bounded number of times.
Exceptions
| Argument | The receiver, distributions, or correlations are null. |
| Argument | The sample count is less than two. |
| Insufficient | The sample count does not exceed the number of distributions. |
| Dimension | The matrix dimension differs from the distribution count. |
| Argument | The marginal list is empty, contains null, or the matrix is invalid. |
| Not | A marginal is not a univariate continuous or discrete distribution. |
| Invalid | Independent normal-score permutations could not be generated. |
CorrelatedSamples(Random, Int32, Distribution[], SymmetricMatrix<Double>)
Generates a series of random variables with the specified correlation matrix.
Remarks
Uses Iman-Conover rank rearrangement, preserving every sampled marginal
value. The correlation matrix must be finite and positive definite with a unit
diagonal. The sample count must exceed the number of distributions. Singular
normal-score permutations are retried a bounded number of times.
Exceptions
| Argument | The receiver, distributions, or correlations are null. |
| Argument | The sample count is less than two. |
| Insufficient | The sample count does not exceed the number of distributions. |
| Dimension | The matrix dimension differs from the distribution count. |
| Argument | The marginal list is empty, contains null, or the matrix is invalid. |
| Not | A marginal is not a univariate continuous or discrete distribution. |
| Invalid | Independent normal-score permutations could not be generated. |