Class R1Distribution

java.lang.Object
org.drip.measure.discrete.R1Distribution

public class R1Distribution
extends java.lang.Object
R1Distribution implements the Discrete Distribution over the Combinatorial R1 Outcomes.

Author:
Lakshmi Krishnamurthy
  • Method Summary

    Modifier and Type Method Description
    double probability​(double x)
    Retrieve the Probability of the Instance Occurrence
    java.util.TreeMap<java.lang.Double,​java.lang.Double> probabilityMap()
    Retrieve the Discrete Probability Map
    static R1Distribution Standard​(double[] instanceArray, double[] probabilityArray)
    Generate an Standard Instance of Discrete R1Distribution

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • Standard

      public static R1Distribution Standard​(double[] instanceArray, double[] probabilityArray)
      Generate an Standard Instance of Discrete R1Distribution
      Parameters:
      instanceArray - Instance Array
      probabilityArray - Probability Array
      Returns:
      Standard Instance of Discrete R1Distribution
    • probabilityMap

      public java.util.TreeMap<java.lang.Double,​java.lang.Double> probabilityMap()
      Retrieve the Discrete Probability Map
      Returns:
      The Discrete Probability Map
    • probability

      public double probability​(double x) throws java.lang.Exception
      Retrieve the Probability of the Instance Occurrence
      Parameters:
      x - Input Instance
      Returns:
      Probability of the Instance Occurrence
      Throws:
      java.lang.Exception - Thrown if the Input Instance is Invalid