Package org.drip.measure.distribution
Class R1ContinuousUniformPiecewiseLinear
java.lang.Object
org.drip.measure.distribution.R1Continuous
org.drip.measure.distribution.R1ContinuousUniform
org.drip.measure.distribution.R1ContinuousUniformPiecewiseLinear
public class R1ContinuousUniformPiecewiseLinear extends R1ContinuousUniform
R1ContinuousUniformPiecewiseLinear implements the Piecewise Linear R1 Distributions. It
exports the Methods corresponding to the R1 Lebesgue Base Class. It provides the following
Functionality:
- Calibrate an R1ContinuousUniformPiecewiseLinear Lebesgue Instance
- R1ContinuousUniformPiecewiseLinear Constructor
- Retrieve the Array of Predictor Ordinates
- Retrieve the Array of Piecewise Densities
- Compute the cumulative under the distribution to the given value
- Compute the inverse cumulative under the distribution corresponding to the given value
- Compute the Density under the Distribution at the given Variate
- Retrieve the Univariate Weighted Histogram
| Module | Computational Core Module |
| Library | Numerical Analysis Library |
| Project | Rd Continuous/Discrete Probability Measures |
| Package | R1 and Rd Continuous Random Measure |
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description R1ContinuousUniformPiecewiseLinear(double leftPredictorOrdinateEdge, double rightPredictorOrdinateEdge, double[] predictorOrdinateArray, double[] piecewiseDensityArray)R1ContinuousUniformPiecewiseLinear Constructor -
Method Summary
Modifier and Type Method Description doublecumulative(double x)Compute the cumulative under the distribution to the given valuedoubledensity(double x)Compute the Density under the Distribution at the given VariateArray2Dhistogram()Retrieve the Univariate Weighted HistogramdoubleinvCumulative(double y)Compute the inverse cumulative under the distribution corresponding to the given valuedouble[]piecewiseDensityArray()Retrieve the Array of Piecewise Densitiesdouble[]predictorOrdinateArray()Retrieve the Array of Predictor Ordinatesstatic R1ContinuousUniformPiecewiseLinearStandard(double leftPredictorOrdinateEdge, double rightPredictorOrdinateEdge, double[] predictorOrdinateArray, double[] cumulativeProbabilityArray)Calibrate an R1ContinuousUniformPiecewiseLinear Lebesgue InstanceMethods inherited from class org.drip.measure.distribution.R1ContinuousUniform
incremental, leftSupport, mean, random, rightSupport, Standard, support, supported, varianceMethods inherited from class org.drip.measure.distribution.R1Continuous
bPOE, centralMoment, cvar, differentialEntropy, excessKurtosis, expectedShortfall, fisherInformation, iqr, kullbackLeiblerDivergence, median, mode, nonCentralMoment, populationCentralMeasures, probabilityGeneratingFunction, quadratureEstimator, quantile, randomArray, skewness, tukeyAnomaly, tukeyCriterionMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
R1ContinuousUniformPiecewiseLinear
public R1ContinuousUniformPiecewiseLinear(double leftPredictorOrdinateEdge, double rightPredictorOrdinateEdge, double[] predictorOrdinateArray, double[] piecewiseDensityArray) throws java.lang.ExceptionR1ContinuousUniformPiecewiseLinear Constructor- Parameters:
leftPredictorOrdinateEdge- Left Predictor Ordinate EdgerightPredictorOrdinateEdge- Right Predictor Ordinate EdgepredictorOrdinateArray- Array of Intermediate Predictor OrdinatespiecewiseDensityArray- Array of corresponding Piece-wise Densities- Throws:
java.lang.Exception- Thrown if the Inputs are invalid
-
-
Method Details
-
Standard
public static final R1ContinuousUniformPiecewiseLinear Standard(double leftPredictorOrdinateEdge, double rightPredictorOrdinateEdge, double[] predictorOrdinateArray, double[] cumulativeProbabilityArray)Calibrate an R1ContinuousUniformPiecewiseLinear Lebesgue Instance- Parameters:
leftPredictorOrdinateEdge- Left Predictor Ordinate EdgerightPredictorOrdinateEdge- Right Predictor Ordinate EdgepredictorOrdinateArray- Array of Intermediate Predictor OrdinatescumulativeProbabilityArray- Array of corresponding Cumulative Probabilities- Returns:
- The R1ContinuousUniformPiecewiseLinear Instance
-
predictorOrdinateArray
public double[] predictorOrdinateArray()Retrieve the Array of Predictor Ordinates- Returns:
- The Array of Predictor Ordinates
-
piecewiseDensityArray
public double[] piecewiseDensityArray()Retrieve the Array of Piecewise Densities- Returns:
- The Array of Piecewise Densities
-
cumulative
public double cumulative(double x) throws java.lang.ExceptionCompute the cumulative under the distribution to the given value- Overrides:
cumulativein classR1ContinuousUniform- Parameters:
x- Variate to which the cumulative is to be computed- Returns:
- The cumulative
- Throws:
java.lang.Exception- Thrown if the inputs are invalid
-
invCumulative
public double invCumulative(double y) throws java.lang.ExceptionCompute the inverse cumulative under the distribution corresponding to the given value- Overrides:
invCumulativein classR1ContinuousUniform- Parameters:
y- Value corresponding to which the inverse cumulative is to be computed- Returns:
- The inverse cumulative
- Throws:
java.lang.Exception- Thrown if the Input is invalid
-
density
public double density(double x) throws java.lang.ExceptionCompute the Density under the Distribution at the given Variate- Overrides:
densityin classR1ContinuousUniform- Parameters:
x- Variate at which the Density needs to be computed- Returns:
- The Density
- Throws:
java.lang.Exception- Thrown if the input is invalid
-
histogram
Retrieve the Univariate Weighted Histogram- Overrides:
histogramin classR1ContinuousUniform- Returns:
- The Univariate Weighted Histogram
-