Package org.drip.measure.discontinuous
Class CorrelatedFactorsPathVertexRealization
java.lang.Object
org.drip.measure.discontinuous.CorrelatedFactorsPathVertexRealization
public class CorrelatedFactorsPathVertexRealization
extends java.lang.Object
CorrelatedFactorsPathVertexRealization generates Correlated Rd Random Numbers at the
specified Vertexes, over the Specified Paths. It provides the following Functionality:
- CorrelatedFactorsPathVertexRealization Constructor
- Retrieve the Random Number Generator
- Retrieve the Correlation Matrix
- Retrieve the Cholesky Matrix
- Retrieve the Number of Vertex Nodes
- Retrieve the Number of Simulation Paths
- Retrieve the Number of Factor Dimensions
- Indicate if the Antithetic Variable Generation is to be applied
- Retrieve the Quadratic Resampler Instance
- Generate a Straight Rd Vertex Node Realization
- Generate the Array of Rd Vertex and its Antithetic Realization Pairs
- Generate a Straight Path Rd Vertex Realization
- Generate an Pair of Straight/Antithetic Path Rd Vertex Realizations
- Generate Multi-Path Rd Vertex Realizations Array
- Generate Antithetic Multi-Path Rd Vertex Realizations Array
- Generate Multi-Path Rd Vertex Realizations Array
| 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 CorrelatedFactorsPathVertexRealization(RandomNumberGenerator randomNumberGenerator, double[][] correlationMatrix, int nodeCount, int simulationCount, boolean applyAntithetic, QuadraticResampler quadraticResampler)CorrelatedFactorsPathVertexRealization Constructor -
Method Summary
Modifier and Type Method Description booleanapplyAntithetic()Indicate if the Antithetic Variable Generation is to be applieddouble[][]choleskyMatrix()Retrieve the Cholesky Matrixdouble[][]correlationMatrix()Retrieve the Correlation MatrixintdimensionCount()Retrieve the Number of Factor DimensionsVertexRd[]multiTrajectoryNodeRd()Generate Multi-Path Rd Vertex Realizations ArrayVertexRd[]multiTrajectoryStraightAntitheticNodePair()Generate Antithetic Multi-Path Rd Vertex Realizations ArrayVertexRd[]multiTrajectoryStraightNodeRd()Generate Multi-Path Rd Vertex Realizations ArrayintnodeCount()Retrieve the Number of Vertex NodesQuadraticResamplerquadraticResampler()Retrieve the Quadratic Resampler InstanceRandomNumberGeneratorrandomNumberGenerator()Retrieve the Random Number GeneratorintsimulationCount()Retrieve the Number of Simulation Pathsdouble[][]straightAntitheticNodePair()Generate the Array of Rd Vertex and its Antithetic Realization Pairsdouble[]straightNodeRd()Generate a Straight Rd Vertex Node RealizationVertexRd[]trajectoryStraightAntitheticNodePair()Generate an Pair of Straight/Antithetic Path Rd Vertex RealizationsVertexRdtrajectoryStraightNodeRd()Generate a Straight Path Rd Vertex RealizationMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CorrelatedFactorsPathVertexRealization
public CorrelatedFactorsPathVertexRealization(RandomNumberGenerator randomNumberGenerator, double[][] correlationMatrix, int nodeCount, int simulationCount, boolean applyAntithetic, QuadraticResampler quadraticResampler) throws java.lang.ExceptionCorrelatedFactorsPathVertexRealization Constructor- Parameters:
randomNumberGenerator- The Random Number GeneratorcorrelationMatrix- The Correlation MatrixnodeCount- Number of Vertex NodessimulationCount- Number of Simulated PathsapplyAntithetic- TRUE - Apply Antithetic Variables Based Variance ReductionquadraticResampler- 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
-
correlationMatrix
public double[][] correlationMatrix()Retrieve the Correlation Matrix- Returns:
- The Correlation Matrix
-
choleskyMatrix
public double[][] choleskyMatrix()Retrieve the Cholesky Matrix- Returns:
- The Cholesky Matrix
-
nodeCount
public int nodeCount()Retrieve the Number of Vertex Nodes- Returns:
- The Number of Vertex Nodes
-
simulationCount
public int simulationCount()Retrieve the Number of Simulation Paths- Returns:
- The Number of Simulation Paths
-
dimensionCount
public int dimensionCount()Retrieve the Number of Factor 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
-
straightNodeRd
public double[] straightNodeRd()Generate a Straight Rd Vertex Node Realization- Returns:
- Straight Rd Vertex Node Realization
-
straightAntitheticNodePair
public double[][] straightAntitheticNodePair()Generate the Array of Rd Vertex and its Antithetic Realization Pairs- Returns:
- Array of Rd Vertex and its Antithetic Realization Pairs
-
trajectoryStraightNodeRd
Generate a Straight Path Rd Vertex Realization- Returns:
- Straight Path Rd Vertex Realization
-
trajectoryStraightAntitheticNodePair
Generate an Pair of Straight/Antithetic Path Rd Vertex Realizations- Returns:
- Pair of Straight/Antithetic Path Rd Vertex Realizations
-
multiTrajectoryStraightNodeRd
Generate Multi-Path Rd Vertex Realizations Array- Returns:
- Multi-Path Rd Vertex Realizations Array
-
multiTrajectoryStraightAntitheticNodePair
Generate Antithetic Multi-Path Rd Vertex Realizations Array- Returns:
- Antithetic Multi-Path Rd Vertex Realizations Array
-
multiTrajectoryNodeRd
Generate Multi-Path Rd Vertex Realizations Array- Returns:
- Multi-Path Rd Vertex Realizations Array
-