Package org.drip.measure.discrete
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.
- Module = Computational Core Module
- Library = Numerical Analysis Library
- Project = Rd Continuous/Discrete Probability Measures
- Package = Antithetic, Quadratically Re-sampled, De-biased Distribution
- 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 R1DistributionStandard(double[] instanceArray, double[] probabilityArray)Generate an Standard Instance of Discrete R1DistributionMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
Standard
Generate an Standard Instance of Discrete R1Distribution- Parameters:
instanceArray- Instance ArrayprobabilityArray- 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.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
-