Package org.drip.spaces.tensor
Class Cardinality
java.lang.Object
org.drip.spaces.tensor.Cardinality
public class Cardinality
extends java.lang.Object
Cardinality contains the Type and the Measure of the Cardinality of the given Vector Space. It
provides the following Functionality:
- Cardinality Type - Countably Finite
- Cardinality Type - Countably Infinite
- Cardinality Type - Uncountably Infinite
- Countably Finite Cardinality
- Countably Infinite Cardinality
- Uncountably Infinite Cardinality
- Cardinality Constructor
- Retrieve the Cardinality Type
- Retrieve the Cardinality Number
- Indicate if the Current Instance matches the "Other" Cardinality Instance
- Author:
- Lakshmi Krishnamurthy
-
Field Summary
Fields Modifier and Type Field Description static int
CARD_COUNTABLY_FINITE
Cardinality Type - Countably Finitestatic int
CARD_COUNTABLY_INFINITE
Cardinality Type - Countably Infinitestatic int
CARD_UNCOUNTABLY_INFINITE
Cardinality Type - Uncountably Infinite -
Constructor Summary
Constructors Constructor Description Cardinality(int type, double number)
Cardinality Constructor -
Method Summary
Modifier and Type Method Description static Cardinality
CountablyFinite(double dblNumber)
Countably Finite Cardinalitystatic Cardinality
CountablyInfinite()
Countably Infinite Cardinalityboolean
match(Cardinality cardOther)
Indicate if the Current Instance matches the "Other" Cardinality Instancedouble
number()
Retrieve the Cardinality Numberint
type()
Retrieve the Cardinality Typestatic Cardinality
UncountablyInfinite()
Uncountably Infinite CardinalityMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
CARD_COUNTABLY_FINITE
public static final int CARD_COUNTABLY_FINITECardinality Type - Countably Finite- See Also:
- Constant Field Values
-
CARD_COUNTABLY_INFINITE
public static final int CARD_COUNTABLY_INFINITECardinality Type - Countably Infinite- See Also:
- Constant Field Values
-
CARD_UNCOUNTABLY_INFINITE
public static final int CARD_UNCOUNTABLY_INFINITECardinality Type - Uncountably Infinite- See Also:
- Constant Field Values
-
-
Constructor Details
-
Cardinality
public Cardinality(int type, double number) throws java.lang.ExceptionCardinality Constructor- Parameters:
type
- Cardinality Typenumber
- Cardinality Number- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
-
Method Details
-
CountablyFinite
Countably Finite Cardinality- Parameters:
dblNumber
- The Cardinality Number- Returns:
- The Cardinality Instance
-
CountablyInfinite
Countably Infinite Cardinality- Returns:
- The Cardinality Instance
-
UncountablyInfinite
Uncountably Infinite Cardinality- Returns:
- The Cardinality Instance
-
type
public int type()Retrieve the Cardinality Type- Returns:
- The Cardinality Type
-
number
public double number()Retrieve the Cardinality Number- Returns:
- The Cardinality Number
-
match
Indicate if the Current Instance matches the "Other" Cardinality Instance- Parameters:
cardOther
- The "Other" Cardinality Instance- Returns:
- TRUE - The Instances Match
-