Package org.drip.measure.discrete
Class SequenceGenerator
java.lang.Object
org.drip.measure.discrete.SequenceGenerator
public class SequenceGenerator
extends java.lang.Object
SequenceGenerator generates the specified Univariate Sequence of the Given Distribution Type.
- Backstrom, T., and J. Fischer (2018): Fast Randomization for Distributed Low Bit-rate Coding of Speech and Audio IEEE/ACM Transactions on Audio, Speech, and Language Processing 26 (1) 19-30
- Chi-Squared Distribution (2019): Chi-Squared Function https://en.wikipedia.org/wiki/Chi-squared_distribution
- Johnson, N. L., S. Klotz, and N. Balakrishnan (1994): Continuous Univariate Distributions 1 2nd Edition John Wiley and Sons
- Lancaster, H, O. (1969): The Chi-Squared Distribution Wiley
- Pillai, N. S. (1026): An Unexpected Encounter with Cauchy and Levy Annals of Statistics 44 (5) 2089-2097
- Module = Computational Core Module
- Library = Numerical Analysis Library
- Project = Rd Continuous/Discrete Probability Measures
- Package = Antithetic, Quadratically Re-sampled, De-biased Distribution
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description SequenceGenerator()
-
Method Summary
Modifier and Type Method Description static double[]
Beta(int count, int degreesOfFreedom1, int degreesOfFreedom2)
Generate an Array of Beta Distributed Random Numbersstatic double[]
Chi(int count, int degreesOfFreedom)
Generate an Array of Chi Distributed Random Numbersstatic double[]
ChiSquared(int count, int degreesOfFreedom)
Generate an Array of Chi-Squared Distributed Random Numbersstatic double[]
F(int count, int degreesOfFreedom1, int degreesOfFreedom2)
Generate an Array of F Distributed Random Numbersstatic double[]
Gaussian(int iCount)
Generate a Sequence of Gaussian Random Numbersstatic double[][]
GaussianJoint(int iCount, double[][] aadblCorrelation)
Generate a Sequence of R^d Correlated Gaussian Random Numbersstatic double[]
InverseChiSquared(int count, int degreesOfFreedom)
Generate an Array of Inverse Chi-Squared Distributed Random Numbersstatic double[]
LogNormal(int iCount)
Generate a Sequence of Log Normal Random Numbersstatic double[]
PillaiSpecialChiSquare(int count, double[][] covarianceMatrix, double[] weightArray)
Generate a Pillai (2016) Special Chi-Squared Distributed Arraystatic double[]
RankReducedChiSquare(int count, double[][] covarianceMatrix)
Generate a Rank-reduced Chi-Squared Distributed Arraystatic double[]
ScaledGamma(int count, int degreesOfFreedom, double scale)
Generate an Array of Scaled Gamma Distributed Random Numbersstatic double[]
Uniform(int iCount)
Generate a Sequence of Uniform Random Numbersstatic double[]
UnitScaleMaxwell(int count)
Generate an Array of Unit Scale Maxwell Distributed Random Numbersstatic double[]
UnitScaleRayleigh(int count)
Generate an Array of Unit Scale Rayleigh Distributed Random NumbersMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SequenceGenerator
public SequenceGenerator()
-
-
Method Details
-
Uniform
public static final double[] Uniform(int iCount)Generate a Sequence of Uniform Random Numbers- Parameters:
iCount
- The Count in the Sequence- Returns:
- The Sequence of Uniform Random Numbers
-
Gaussian
public static final double[] Gaussian(int iCount)Generate a Sequence of Gaussian Random Numbers- Parameters:
iCount
- The Count in the Sequence- Returns:
- The Sequence of Gaussian Random Numbers
-
LogNormal
public static final double[] LogNormal(int iCount)Generate a Sequence of Log Normal Random Numbers- Parameters:
iCount
- The Count in the Sequence- Returns:
- The Sequence of Log Normal Random Numbers
-
GaussianJoint
public static final double[][] GaussianJoint(int iCount, double[][] aadblCorrelation)Generate a Sequence of R^d Correlated Gaussian Random Numbers- Parameters:
iCount
- The Count in the SequenceaadblCorrelation
- The Correlation Matrix- Returns:
- The Sequence of R^d Correlated Gaussian Random Numbers
-
ChiSquared
public static final double[] ChiSquared(int count, int degreesOfFreedom)Generate an Array of Chi-Squared Distributed Random Numbers- Parameters:
count
- Array CountdegreesOfFreedom
- Degrees of Freedom- Returns:
- Array of Chi-Squared Distributed Random Numbers
-
ScaledGamma
public static final double[] ScaledGamma(int count, int degreesOfFreedom, double scale)Generate an Array of Scaled Gamma Distributed Random Numbers- Parameters:
count
- Array CountdegreesOfFreedom
- Degrees of Freedomscale
- Scale Parameter- Returns:
- Array of Scaled Gamma Distributed Random Numbers
-
Chi
public static final double[] Chi(int count, int degreesOfFreedom)Generate an Array of Chi Distributed Random Numbers- Parameters:
count
- Array CountdegreesOfFreedom
- Degrees of Freedom- Returns:
- Array of Chi Distributed Random Numbers
-
UnitScaleRayleigh
public static final double[] UnitScaleRayleigh(int count)Generate an Array of Unit Scale Rayleigh Distributed Random Numbers- Parameters:
count
- Array Count- Returns:
- Array of Unit Scale Rayleigh Distributed Random Numbers
-
UnitScaleMaxwell
public static final double[] UnitScaleMaxwell(int count)Generate an Array of Unit Scale Maxwell Distributed Random Numbers- Parameters:
count
- Array Count- Returns:
- Array of Unit Scale Maxwell Distributed Random Numbers
-
InverseChiSquared
public static final double[] InverseChiSquared(int count, int degreesOfFreedom)Generate an Array of Inverse Chi-Squared Distributed Random Numbers- Parameters:
count
- Array CountdegreesOfFreedom
- Degrees of Freedom- Returns:
- Array of Inverse Chi-Squared Distributed Random Numbers
-
Beta
public static final double[] Beta(int count, int degreesOfFreedom1, int degreesOfFreedom2)Generate an Array of Beta Distributed Random Numbers- Parameters:
count
- Array CountdegreesOfFreedom1
- Degrees of Freedom #1degreesOfFreedom2
- Degrees of Freedom #2- Returns:
- Array of Beta Distributed Random Numbers
-
F
public static final double[] F(int count, int degreesOfFreedom1, int degreesOfFreedom2)Generate an Array of F Distributed Random Numbers- Parameters:
count
- Array CountdegreesOfFreedom1
- Degrees of Freedom #1degreesOfFreedom2
- Degrees of Freedom #2- Returns:
- Array of F Distributed Random Numbers
-
RankReducedChiSquare
public static final double[] RankReducedChiSquare(int count, double[][] covarianceMatrix)Generate a Rank-reduced Chi-Squared Distributed Array- Parameters:
count
- Array CountcovarianceMatrix
- The Covariance Matrix- Returns:
- Rank-reduced Chi-Squared Distributed Array
-
PillaiSpecialChiSquare
public static final double[] PillaiSpecialChiSquare(int count, double[][] covarianceMatrix, double[] weightArray)Generate a Pillai (2016) Special Chi-Squared Distributed Array- Parameters:
count
- Array CountcovarianceMatrix
- The Covariance MatrixweightArray
- Array of Weights- Returns:
- Pillai (2016) Special Chi-Squared Distributed Array
-