Package org.drip.spaces.tensor
Class R1ContinuousVector
java.lang.Object
org.drip.spaces.tensor.R1ContinuousVector
- All Implemented Interfaces:
GeneralizedVector
,R1GeneralizedVector
- Direct Known Subclasses:
R1Continuous
public class R1ContinuousVector extends java.lang.Object implements R1GeneralizedVector
R1ContinuousVector exposes the Normed/non-normed, Bounded/Unbounded Continuous R1 Vector
Spaces with Real-valued Elements. The Reference we've used is:
- Carl, B., and I. Stephani (1990): Entropy, Compactness, and the Approximation of Operators Cambridge University Press Cambridge UK
- Create the Standard R1 Continuous Vector Space
- R1ContinuousVector Constructor
- Retrieve the Left Edge
- Retrieve the Right Edge
- Validate the Input Instance Array
- Retrieve the Cardinality of the Vector Space
- Compare against the "Other" Generalized Vector Space
- Indicate if the "Other" Generalized Vector Space is a Subset of "this"
- Indicate if the Predictor Variate Space is bounded from the Left and the Right
- Retrieve the "Hyper" Volume of the Vector Space
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description R1ContinuousVector(double leftEdge, double rightEdge)
R1ContinuousVector Constructor -
Method Summary
Modifier and Type Method Description Cardinality
cardinality()
Retrieve the Cardinality of the Vector Spacedouble
hyperVolume()
Retrieve the "Hyper" Volume of the Vector Spaceboolean
isPredictorBounded()
Indicate if the Predictor Variate Space is bounded from the Left and the Rightdouble
leftEdge()
Retrieve the Left Edgeboolean
match(GeneralizedVector generalizedVectorOther)
Compare against the "Other" Generalized Vector Spacedouble
rightEdge()
Retrieve the Right Edgestatic R1ContinuousVector
Standard()
Create the Standard R1 Continuous Vector Spaceboolean
subset(GeneralizedVector generalizedVectorOther)
Indicate if the "Other" Generalized Vector Space is a Subset of "this"boolean
validateInstance(double instanceArray)
Validate the Input Instance ArrayMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
R1ContinuousVector
public R1ContinuousVector(double leftEdge, double rightEdge) throws java.lang.ExceptionR1ContinuousVector Constructor- Parameters:
leftEdge
- The Left EdgerightEdge
- The Right Edge- Throws:
java.lang.Exception
- Thrown if the Inputs are invalid
-
-
Method Details
-
Standard
Create the Standard R1 Continuous Vector Space- Returns:
- The Standard R1 Continuous Vector Space
-
leftEdge
public double leftEdge()Retrieve the Left Edge- Specified by:
leftEdge
in interfaceGeneralizedVector
- Returns:
- The Left Edge
-
rightEdge
public double rightEdge()Retrieve the Right Edge- Specified by:
rightEdge
in interfaceGeneralizedVector
- Returns:
- The Right Edge
-
validateInstance
public boolean validateInstance(double instanceArray)Validate the Input Instance Array- Specified by:
validateInstance
in interfaceR1GeneralizedVector
- Parameters:
instanceArray
- The Input Instance Array- Returns:
- TRUE - Instance is a Valid Entry in the Space
-
cardinality
Retrieve the Cardinality of the Vector Space- Specified by:
cardinality
in interfaceGeneralizedVector
- Returns:
- Cardinality of the Vector Space
-
match
Compare against the "Other" Generalized Vector Space- Specified by:
match
in interfaceGeneralizedVector
- Parameters:
generalizedVectorOther
- The "Other" Generalized Vector Space- Returns:
- TRUE - The "Other" Generalized Vector Space matches this
-
subset
Indicate if the "Other" Generalized Vector Space is a Subset of "this"- Specified by:
subset
in interfaceGeneralizedVector
- Parameters:
generalizedVectorOther
- The "Other" Generalized Vector Space- Returns:
- TRUE - The "Other" Generalized Vector Space is a Subset of this
-
isPredictorBounded
public boolean isPredictorBounded()Indicate if the Predictor Variate Space is bounded from the Left and the Right- Specified by:
isPredictorBounded
in interfaceGeneralizedVector
- Returns:
- The Predictor Variate Space is bounded from the Left and the Right
-
hyperVolume
public double hyperVolume() throws java.lang.ExceptionRetrieve the "Hyper" Volume of the Vector Space- Specified by:
hyperVolume
in interfaceGeneralizedVector
- Returns:
- The "Hyper" Volume of the Vector Space
- Throws:
java.lang.Exception
- Thrown if the Hyper Volume cannot be computed
-