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

Module Computational Core Module
Library Statistical Learning Library
Project R1 and Rd Vector/Tensor Spaces (Validated and/or Normed), and Function Classes
Package Rx Continuous/Combinatorial Tensor Spaces

Author:
Lakshmi Krishnamurthy
  • Field Summary

    Fields
    Modifier and Type Field Description
    static int CARD_COUNTABLY_FINITE
    Cardinality Type - Countably Finite
    static int CARD_COUNTABLY_INFINITE
    Cardinality Type - Countably Infinite
    static 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 Cardinality
    static Cardinality CountablyInfinite()
    Countably Infinite Cardinality
    boolean match​(Cardinality cardOther)
    Indicate if the Current Instance matches the "Other" Cardinality Instance
    double number()
    Retrieve the Cardinality Number
    int type()
    Retrieve the Cardinality Type
    static Cardinality UncountablyInfinite()
    Uncountably Infinite Cardinality

    Methods 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_FINITE
      Cardinality Type - Countably Finite
      See Also:
      Constant Field Values
    • CARD_COUNTABLY_INFINITE

      public static final int CARD_COUNTABLY_INFINITE
      Cardinality Type - Countably Infinite
      See Also:
      Constant Field Values
    • CARD_UNCOUNTABLY_INFINITE

      public static final int CARD_UNCOUNTABLY_INFINITE
      Cardinality Type - Uncountably Infinite
      See Also:
      Constant Field Values
  • Constructor Details

    • Cardinality

      public Cardinality​(int type, double number) throws java.lang.Exception
      Cardinality Constructor
      Parameters:
      type - Cardinality Type
      number - Cardinality Number
      Throws:
      java.lang.Exception - Thrown if the Inputs are Invalid
  • Method Details

    • CountablyFinite

      public static final Cardinality CountablyFinite​(double dblNumber)
      Countably Finite Cardinality
      Parameters:
      dblNumber - The Cardinality Number
      Returns:
      The Cardinality Instance
    • CountablyInfinite

      public static final Cardinality CountablyInfinite()
      Countably Infinite Cardinality
      Returns:
      The Cardinality Instance
    • UncountablyInfinite

      public static final Cardinality 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

      public boolean match​(Cardinality cardOther)
      Indicate if the Current Instance matches the "Other" Cardinality Instance
      Parameters:
      cardOther - The "Other" Cardinality Instance
      Returns:
      TRUE - The Instances Match