Package org.drip.measure.distribution
Class R1Discrete
java.lang.Object
org.drip.measure.distribution.R1Discrete
public class R1Discrete
extends java.lang.Object
R1Discrete implements the Discrete Distribution over the Combinatorial R1 Outcomes. It
provides the following Functionality:
- Generate an Standard Instance of Discrete R1Discrete
- Retrieve the Discrete Probability Map
- Retrieve the Probability of the Instance Occurrence
| Module | Computational Core Module |
| Library | Numerical Analysis Library |
| Project | Rd Continuous/Discrete Probability Measures |
| Package | R1 and Rd Continuous Random Measure |
- Author:
- Lakshmi Krishnamurthy
-
Method Summary
Modifier and Type Method Description doubleprobability(double x)Retrieve the Probability of the Instance Occurrencejava.util.TreeMap<java.lang.Double,java.lang.Double>probabilityMap()Retrieve the Discrete Probability Mapstatic R1DiscreteStandard(double[] instanceArray, double[] probabilityArray)Generate an Standard Instance of Discrete R1DiscreteMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
Standard
Generate an Standard Instance of Discrete R1Discrete- Parameters:
instanceArray- Instance ArrayprobabilityArray- Probability Array- Returns:
- Standard Instance of Discrete R1Discrete
-
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.ExceptionRetrieve 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
-