Class VertexRd

java.lang.Object
org.drip.measure.discrete.VertexRd

public class VertexRd
extends java.lang.Object
VertexRd holds the Rd Realizations at the Individual Vertexes.

Author:
Lakshmi Krishnamurthy
  • Constructor Summary

    Constructors
    Constructor Description
    VertexRd()
    Empty VertexRd Constructor
  • Method Summary

    Modifier and Type Method Description
    boolean add​(int iVertex, double[] adblRealization)
    Add the Vertex Index and its corresponding Realization
    double[][] flatform()
    Flatten out into a 2D Array
    static VertexRd FromFlatForm​(double[][] aadblSequence)
    Construct a VertexRd Instance from the R^d Sequence
    java.util.List<double[]> vertexList()
    Retrieve the Vertex R^d List
    double[] vertexRealization​(int iVertex)
    Retrieve the Vertex Realization given the Vertex Index

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • VertexRd

      public VertexRd()
      Empty VertexRd Constructor
  • Method Details

    • FromFlatForm

      public static final VertexRd FromFlatForm​(double[][] aadblSequence)
      Construct a VertexRd Instance from the R^d Sequence
      Parameters:
      aadblSequence - The R^d Sequence
      Returns:
      The VertexRd Instance
    • vertexList

      public java.util.List<double[]> vertexList()
      Retrieve the Vertex R^d List
      Returns:
      The Vertex R^d List
    • add

      public boolean add​(int iVertex, double[] adblRealization)
      Add the Vertex Index and its corresponding Realization
      Parameters:
      iVertex - The Vertex Index
      adblRealization - The R^d Realization Array
      Returns:
      TRUE - The Vertex Index/Realization successfully added
    • vertexRealization

      public double[] vertexRealization​(int iVertex)
      Retrieve the Vertex Realization given the Vertex Index
      Parameters:
      iVertex - The Vertex Index
      Returns:
      Array of Vertex Realizations
    • flatform

      public double[][] flatform()
      Flatten out into a 2D Array
      Returns:
      The 2D Array of the VertexRd Realizations