Package org.drip.measure.discrete
Class CorrelatedPathVertexDimension
java.lang.Object
org.drip.measure.discrete.CorrelatedPathVertexDimension
public class CorrelatedPathVertexDimension
extends java.lang.Object
CorrelatedPathVertexDimension generates Correlated R^d Random Numbers at the specified Vertexes,
over the Specified Paths.
- 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 CorrelatedPathVertexDimension(RandomNumberGenerator rng, double[][] aadblCorrelation, int iNumVertex, int iNumPath, boolean bApplyAntithetic, QuadraticResampler qr)
CorrelatedPathVertexDimension Constructor -
Method Summary
Modifier and Type Method Description VertexRd[]
antitheticMultiPathVertexRd()
Generate Antithetic Multi-Path R^d Vertex Realizations ArrayVertexRd[]
antitheticPairPathVertexRd()
Generate an Antithetic Pair Path R^d Vertex Realizationsdouble[][]
antitheticVertexPairRealization()
Generate an Antithetic R^d Vertex Pair Realizationboolean
applyAntithetic()
Indicate if the Antithetic Variable Generation is to be applieddouble[][]
cholesky()
Retrieve the Cholesky Matrixdouble[][]
correlation()
Retrieve the Correlation MatrixVertexRd[]
multiPathVertexRd()
Generate Multi-Path R^d Vertex Realizations Arrayint
numDimension()
Retrieve the Number of Dimensionsint
numPath()
Retrieve the Number of Pathsint
numVertex()
Retrieve the Number of VertexesQuadraticResampler
quadraticResampler()
Retrieve the Quadratic Resampler InstanceRandomNumberGenerator
randomNumberGenerator()
Retrieve the Random Number GeneratorVertexRd[]
straightMultiPathVertexRd()
Generate Straight Multi-Path R^d Vertex Realizations ArrayVertexRd
straightPathVertexRd()
Generate a Single Straight Path R^d Vertex Realizationdouble[]
straightVertexRealization()
Generate a Straight Single R^d Vertex RealizationMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CorrelatedPathVertexDimension
public CorrelatedPathVertexDimension(RandomNumberGenerator rng, double[][] aadblCorrelation, int iNumVertex, int iNumPath, boolean bApplyAntithetic, QuadraticResampler qr) throws java.lang.ExceptionCorrelatedPathVertexDimension Constructor- Parameters:
rng
- The Random Number GeneratoraadblCorrelation
- The Correlation MatrixiNumVertex
- Number of VertexesiNumPath
- Number of PathsbApplyAntithetic
- TRUE - Apply Antithetic Variables Based Variance Reductionqr
- Quadratic Resampler Instance- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
-
Method Details
-
randomNumberGenerator
Retrieve the Random Number Generator- Returns:
- The Random Number Generator Instance
-
correlation
public double[][] correlation()Retrieve the Correlation Matrix- Returns:
- The Correlation Matrix
-
cholesky
public double[][] cholesky()Retrieve the Cholesky Matrix- Returns:
- The Cholesky Matrix
-
numVertex
public int numVertex()Retrieve the Number of Vertexes- Returns:
- The Number of Vertexes
-
numPath
public int numPath()Retrieve the Number of Paths- Returns:
- The Number of Paths
-
numDimension
public int numDimension()Retrieve the Number of Dimensions- Returns:
- The Number of Dimensions
-
applyAntithetic
public boolean applyAntithetic()Indicate if the Antithetic Variable Generation is to be applied- Returns:
- TRUE - Apply Antithetic Variables Based Variance Reduction
-
quadraticResampler
Retrieve the Quadratic Resampler Instance- Returns:
- The Quadratic Resampler Instance
-
straightVertexRealization
public double[] straightVertexRealization()Generate a Straight Single R^d Vertex Realization- Returns:
- Straight Single R^d Vertex Realization
-
antitheticVertexPairRealization
public double[][] antitheticVertexPairRealization()Generate an Antithetic R^d Vertex Pair Realization- Returns:
- Antithetic R^d Vertex Pair Realization
-
straightPathVertexRd
Generate a Single Straight Path R^d Vertex Realization- Returns:
- Single Straight Path R^d Vertex Realization
-
antitheticPairPathVertexRd
Generate an Antithetic Pair Path R^d Vertex Realizations- Returns:
- Antithetic Pair Path R^d Vertex Realizations
-
straightMultiPathVertexRd
Generate Straight Multi-Path R^d Vertex Realizations Array- Returns:
- Straight Multi-Path R^d Vertex Realizations Array
-
antitheticMultiPathVertexRd
Generate Antithetic Multi-Path R^d Vertex Realizations Array- Returns:
- Antithetic Multi-Path R^d Vertex Realizations Array
-
multiPathVertexRd
Generate Multi-Path R^d Vertex Realizations Array- Returns:
- Multi-Path R^d Vertex Realizations Array
-