Package org.drip.function.definition
Class UnitVector
java.lang.Object
org.drip.function.definition.UnitVector
public class UnitVector
extends java.lang.Object
UnitVector implements the Normalized Rd Unit Vector.
- Module = Computational Core Module
- Library = Numerical Analysis Library
- Project = Rd To Rd Function Analysis
- Package = Function Implementation Ancillary Support Objects
- Author:
- Lakshmi Krishnamurthy
-
Method Summary
Modifier and Type Method Description double[]
component()
Retrieve the Unit Vector's Component Arraydouble[]
directionalIncrement(double[] adblVariate, double dblStepLength)
Compute the Directional Increment along the Vectorstatic UnitVector
Standard(double[] adbl)
Construct an Instance of the Unit Vector from the Input VectorMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
Standard
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 VariatedblStepLength
- The Step Length- Returns:
- The Directionally Incremented Vector
-