Package org.drip.state.sequence
Class PathRd
java.lang.Object
org.drip.state.sequence.PathRd
- Direct Known Subclasses:
PathGovvie
public class PathRd
extends java.lang.Object
PathRd exposes the Functionality to generate a Sequence of the Path Vertex Latent State
Rd Realizations across Multiple Paths.
- Module = Product Core Module
- Library = Fixed Income Analytics
- Project = Latent State Inference and Creation Utilities
- Package = Monte Carlo Path State Realizations
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description PathRd(double[] meanArray, double volatility, boolean logNormal)
PathRd Constructor -
Method Summary
Modifier and Type Method Description int
dimension()
Retrieve the Rd Dimensionboolean
logNormal()
Indicate if the Random Numbers are Gaussian/LogNormaldouble[]
mean()
Retrieve the Array of Meansdouble[][]
sequence(int pathCount)
Generate the Sequence of Path Realizationsdouble
volatility()
Retrieve the VolatilityMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PathRd
public PathRd(double[] meanArray, double volatility, boolean logNormal) throws java.lang.ExceptionPathRd Constructor- Parameters:
meanArray
- Array of Meansvolatility
- VolatilitylogNormal
- TRUE - The Generated Random Numbers are Log Normal- Throws:
java.lang.Exception
- Thrown if Inputs are Invalid
-
-
Method Details
-
logNormal
public boolean logNormal()Indicate if the Random Numbers are Gaussian/LogNormal- Returns:
- TRUE - The Generated Random Numbers are Log Normal
-
dimension
public int dimension()Retrieve the Rd Dimension- Returns:
- The Rd Dimension
-
mean
public double[] mean()Retrieve the Array of Means- Returns:
- The Array of Means
-
volatility
public double volatility()Retrieve the Volatility- Returns:
- The Volatility
-
sequence
public double[][] sequence(int pathCount)Generate the Sequence of Path Realizations- Parameters:
pathCount
- Number of Paths- Returns:
- The Sequence of Path Realizations
-