Package org.drip.function.definition
Class SizedVector
java.lang.Object
org.drip.function.definition.SizedVector
public class SizedVector
extends java.lang.Object
SizedVector holds the Rd Unit Direction Vector along with its Magnitude.
- Module = Computational Core Module
- Library = Numerical Analysis Library
- Project = Rd To Rd Function Analysis
- Package = Function Implementation Ancillary Support Objects
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description SizedVector(UnitVector uv, double dblMagnitude)
SizedVector Constructor -
Method Summary
Modifier and Type Method Description UnitVector
direction()
Retrieve the Unit Direction Vectordouble
magnitude()
Retrieve the Vector Magnitudestatic SizedVector
Standard(double[] adbl)
Construct an Instance of the Sized Vector from the Input ArrayMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SizedVector
SizedVector Constructor- Parameters:
uv
- The Unit VectordblMagnitude
- Magnitude of the Vector- Throws:
java.lang.Exception
- Thriwn if the Inputs are Invalid
-
-
Method Details
-
Standard
Construct an Instance of the Sized Vector from the Input Array- Parameters:
adbl
- The Input Double Array- Returns:
- The Sized Vector Instance
-
direction
Retrieve the Unit Direction Vector- Returns:
- The Unit Vector Direction Instance
-
magnitude
public double magnitude()Retrieve the Vector Magnitude- Returns:
- The Vector Magnitude
-