Package org.drip.measure.lebesgue
Class R1PiecewiseDisplaced
java.lang.Object
org.drip.measure.continuous.R1Univariate
org.drip.measure.lebesgue.R1Uniform
org.drip.measure.lebesgue.R1PiecewiseDisplaced
public class R1PiecewiseDisplaced extends R1Uniform
R1PiecewiseDisplaced implements the Displaced 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 R1PiecewiseDisplaced(double dblLeftPredictorOrdinateEdge, double dblRightPredictorOrdinateEdge, double[] adblPredictorOrdinate, double[] adblPiecewiseDensitySlope, double dblDensityDisplacement)R1PiecewiseDisplaced Constructor -
Method Summary
Modifier and Type Method Description doublecumulative(double dblX)Compute the cumulative under the distribution to the given valuedoubledensity(double dblX)Compute the Density under the Distribution at the given VariatedoubledensityDisplacement()Retrieve the Density DisplacementArray2Dhistogram()Retrieve the Univariate Weighted HistogramdoubleinvCumulative(double dblY)Compute the inverse cumulative under the distribution corresponding to the given valuedouble[]piecewiseDensitySlopes()Retrieve the Array of Piecewise Density Slopesdouble[]predictorOrdinates()Retrieve the Array of Predictor Ordinatesstatic R1PiecewiseDisplacedStandard(double dblLeftPredictorOrdinateEdge, double dblRightPredictorOrdinateEdge, double[] adblPredictorOrdinate, double[] adblCumulativeProbability, double dblMean)Calibrate an R1PiecewiseDisplaced Lebesgue InstanceMethods inherited from class org.drip.measure.lebesgue.R1Uniform
incremental, leftEdge, mean, rightEdge, support, varianceMethods 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, tukeyCriterionMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
R1PiecewiseDisplaced
public R1PiecewiseDisplaced(double dblLeftPredictorOrdinateEdge, double dblRightPredictorOrdinateEdge, double[] adblPredictorOrdinate, double[] adblPiecewiseDensitySlope, double dblDensityDisplacement) throws java.lang.ExceptionR1PiecewiseDisplaced Constructor- Parameters:
dblLeftPredictorOrdinateEdge- Left Predictor Ordinate EdgedblRightPredictorOrdinateEdge- Right Predictor Ordinate EdgeadblPredictorOrdinate- Array of Intermediate Predictor OrdinatesadblPiecewiseDensitySlope- Array of corresponding Piece-wise Density SlopesdblDensityDisplacement- Uniform Density Displacement- Throws:
java.lang.Exception- Thrown if the Inputs are invalid
-
-
Method Details
-
Standard
public static final R1PiecewiseDisplaced Standard(double dblLeftPredictorOrdinateEdge, double dblRightPredictorOrdinateEdge, double[] adblPredictorOrdinate, double[] adblCumulativeProbability, double dblMean)Calibrate an R1PiecewiseDisplaced Lebesgue Instance- Parameters:
dblLeftPredictorOrdinateEdge- Left Predictor Ordinate EdgedblRightPredictorOrdinateEdge- Right Predictor Ordinate EdgeadblPredictorOrdinate- Array of Intermediate Predictor OrdinatesadblCumulativeProbability- Array of corresponding Cumulative ProbabilitiesdblMean- The Distribution Mean- Returns:
- The R1PiecewiseDisplacedLebesgue Instance
-
predictorOrdinates
public double[] predictorOrdinates()Retrieve the Array of Predictor Ordinates- Returns:
- The Array of Predictor Ordinates
-
piecewiseDensitySlopes
public double[] piecewiseDensitySlopes()Retrieve the Array of Piecewise Density Slopes- Returns:
- The Array of Piecewise Density Slopes
-
densityDisplacement
public double densityDisplacement()Retrieve the Density Displacement- Returns:
- The Density Displacement
-
cumulative
public double cumulative(double dblX) throws java.lang.ExceptionDescription copied from class:R1UnivariateCompute the cumulative under the distribution to the given value- Overrides:
cumulativein 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:R1UnivariateCompute the inverse cumulative under the distribution corresponding to the given value- Overrides:
invCumulativein 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:R1UnivariateCompute the Density under the Distribution at the given Variate -
histogram
Description copied from class:R1UnivariateRetrieve the Univariate Weighted Histogram
-