Package org.drip.measure.lebesgue
Class R1PiecewiseLinear
java.lang.Object
org.drip.measure.continuous.R1Univariate
org.drip.measure.lebesgue.R1Uniform
org.drip.measure.lebesgue.R1PiecewiseLinear
public class R1PiecewiseLinear extends R1Uniform
R1PiecewiseLinear implements the Piecewise Linear R1 Distributions. It exports the
Methods corresponding to the R1 Lebesgue Base Class.
- Module = Computational Core Module
- Library = Numerical Analysis Library
- Project = Rd Continuous/Discrete Probability Measures
- Package = Uniform Piece-wise Lebesgue Measure
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description R1PiecewiseLinear(double dblLeftPredictorOrdinateEdge, double dblRightPredictorOrdinateEdge, double[] adblPredictorOrdinate, double[] adblPiecewiseDensity)
R1PiecewiseLinear Constructor -
Method Summary
Modifier and Type Method Description double
cumulative(double dblX)
Compute the cumulative under the distribution to the given valuedouble
density(double dblX)
Compute the Density under the Distribution at the given VariateArray2D
histogram()
Retrieve the Univariate Weighted Histogramdouble
invCumulative(double dblY)
Compute the inverse cumulative under the distribution corresponding to the given valuedouble[]
piecewiseDensities()
Retrieve the Array of Piecewise Densitiesdouble[]
predictorOrdinates()
Retrieve the Array of Predictor Ordinatesstatic R1PiecewiseLinear
Standard(double dblLeftPredictorOrdinateEdge, double dblRightPredictorOrdinateEdge, double[] adblPredictorOrdinate, double[] adblCumulativeProbability)
Calibrate an R1PiecewiseLinear Lebesgue InstanceMethods inherited from class org.drip.measure.lebesgue.R1Uniform
incremental, leftEdge, mean, rightEdge, support, variance
Methods inherited from class org.drip.measure.continuous.R1Univariate
bPOE, centralMoment, cvar, differentialEntropy, excessKurtosis, expectedShortfall, fisherInformation, iqr, kullbackLeiblerDivergence, median, mode, momentGeneratingFunction, nonCentralMoment, populationCentralMeasures, probabilityGeneratingFunction, quantile, random, randomArray, skewness, supported, tukeyAnomaly, tukeyCriterion
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
R1PiecewiseLinear
public R1PiecewiseLinear(double dblLeftPredictorOrdinateEdge, double dblRightPredictorOrdinateEdge, double[] adblPredictorOrdinate, double[] adblPiecewiseDensity) throws java.lang.ExceptionR1PiecewiseLinear Constructor- Parameters:
dblLeftPredictorOrdinateEdge
- Left Predictor Ordinate EdgedblRightPredictorOrdinateEdge
- Right Predictor Ordinate EdgeadblPredictorOrdinate
- Array of Intermediate Predictor OrdinatesadblPiecewiseDensity
- Array of corresponding Piece-wise Densities- Throws:
java.lang.Exception
- Thrown if the Inputs are invalid
-
-
Method Details
-
Standard
public static final R1PiecewiseLinear Standard(double dblLeftPredictorOrdinateEdge, double dblRightPredictorOrdinateEdge, double[] adblPredictorOrdinate, double[] adblCumulativeProbability)Calibrate an R1PiecewiseLinear Lebesgue Instance- Parameters:
dblLeftPredictorOrdinateEdge
- Left Predictor Ordinate EdgedblRightPredictorOrdinateEdge
- Right Predictor Ordinate EdgeadblPredictorOrdinate
- Array of Intermediate Predictor OrdinatesadblCumulativeProbability
- Array of corresponding Cumulative Probabilities- Returns:
- The R1PiecewiseLinearLebesgue Instance
-
predictorOrdinates
public double[] predictorOrdinates()Retrieve the Array of Predictor Ordinates- Returns:
- The Array of Predictor Ordinates
-
piecewiseDensities
public double[] piecewiseDensities()Retrieve the Array of Piecewise Densities- Returns:
- The Array of Piecewise Densities
-
cumulative
public double cumulative(double dblX) throws java.lang.ExceptionDescription copied from class:R1Univariate
Compute the cumulative under the distribution to the given value- Overrides:
cumulative
in classR1Uniform
- Parameters:
dblX
- 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 dblY) throws java.lang.ExceptionDescription copied from class:R1Univariate
Compute the inverse cumulative under the distribution corresponding to the given value- Overrides:
invCumulative
in classR1Uniform
- Parameters:
dblY
- 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 dblX) throws java.lang.ExceptionDescription copied from class:R1Univariate
Compute the Density under the Distribution at the given Variate -
histogram
Description copied from class:R1Univariate
Retrieve the Univariate Weighted Histogram
-