Class UnitVector

java.lang.Object
org.drip.function.definition.UnitVector

public class UnitVector
extends java.lang.Object
UnitVector implements the Normalized Rd Unit Vector.

Author:
Lakshmi Krishnamurthy
  • Method Summary

    Modifier and Type Method Description
    double[] component()
    Retrieve the Unit Vector's Component Array
    double[] directionalIncrement​(double[] adblVariate, double dblStepLength)
    Compute the Directional Increment along the Vector
    static UnitVector Standard​(double[] adbl)
    Construct an Instance of the Unit Vector from the Input Vector

    Methods inherited from class java.lang.Object

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

    • Standard

      public static final UnitVector Standard​(double[] adbl)
      Construct an Instance of the Unit Vector from the Input Vector
      Parameters:
      adbl - The Input Double Vector
      Returns:
      The Unit Vector Instance
    • component

      public double[] component()
      Retrieve the Unit Vector's Component Array
      Returns:
      The Unit Vector's Component Array
    • directionalIncrement

      public double[] directionalIncrement​(double[] adblVariate, double dblStepLength)
      Compute the Directional Increment along the Vector
      Parameters:
      adblVariate - The Starting R^d Variate
      dblStepLength - The Step Length
      Returns:
      The Directionally Incremented Vector