Package org.drip.measure.distribution
Class R1ContinuousUniformPiecewiseDisplaced
java.lang.Object
org.drip.measure.distribution.R1Continuous
org.drip.measure.distribution.R1ContinuousUniform
org.drip.measure.distribution.R1ContinuousUniformPiecewiseDisplaced
public class R1ContinuousUniformPiecewiseDisplaced extends R1ContinuousUniform
R1ContinuousUniformPiecewiseDisplaced implements the Continuous Uniform Displaced Piecewise Linear
R1 Distributions. It exports the Methods corresponding to the R1 Lebesgue Base
Class. It provides the following Functionality:
- Calibrate an R1ContinuousUniformPiecewiseDisplaced Lebesgue Instance
- R1ContinuousUniformPiecewiseDisplaced Constructor
- Retrieve the Array of Predictor Ordinates
- Retrieve the Array of Piecewise Density Slopes
- Retrieve the Density Displacement
- 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 R1ContinuousUniformPiecewiseDisplaced(double leftPredictorOrdinateEdge, double rightPredictorOrdinateEdge, double[] predictorOrdinateArray, double[] piecewiseDensitySlopeArray, double densityDisplacement)R1ContinuousUniformPiecewiseDisplaced Constructor -
Method Summary
Modifier and Type Method Description double[]_predictorOrdinateArray()Retrieve the Array of Predictor Ordinatesdoublecumulative(double x)Compute the cumulative under the distribution to the given valuedoubledensity(double x)Compute the Density under the Distribution at the given VariatedoubledensityDisplacement()Retrieve the Density DisplacementArray2Dhistogram()Retrieve the Univariate Weighted HistogramdoubleinvCumulative(double y)Compute the inverse cumulative under the distribution corresponding to the given valuedouble[]piecewiseDensitySlopeArray()Retrieve the Array of Piecewise Density Slopesstatic R1ContinuousUniformPiecewiseDisplacedStandard(double leftPredictorOrdinateEdge, double rightPredictorOrdinateEdge, double[] predictorOrdinateArray, double[] cumulativeProbabilityArray, double mean)Calibrate an R1ContinuousUniformPiecewiseDisplaced 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
-
R1ContinuousUniformPiecewiseDisplaced
public R1ContinuousUniformPiecewiseDisplaced(double leftPredictorOrdinateEdge, double rightPredictorOrdinateEdge, double[] predictorOrdinateArray, double[] piecewiseDensitySlopeArray, double densityDisplacement) throws java.lang.ExceptionR1ContinuousUniformPiecewiseDisplaced Constructor- Parameters:
leftPredictorOrdinateEdge- Left Predictor Ordinate EdgerightPredictorOrdinateEdge- Right Predictor Ordinate EdgepredictorOrdinateArray- Array of Intermediate Predictor OrdinatespiecewiseDensitySlopeArray- Array of corresponding Piece-wise Density SlopesdensityDisplacement- Uniform Density Displacement- Throws:
java.lang.Exception- Thrown if the Inputs are invalid
-
-
Method Details
-
Standard
public static final R1ContinuousUniformPiecewiseDisplaced Standard(double leftPredictorOrdinateEdge, double rightPredictorOrdinateEdge, double[] predictorOrdinateArray, double[] cumulativeProbabilityArray, double mean)Calibrate an R1ContinuousUniformPiecewiseDisplaced Lebesgue Instance- Parameters:
leftPredictorOrdinateEdge- Left Predictor Ordinate EdgerightPredictorOrdinateEdge- Right Predictor Ordinate EdgepredictorOrdinateArray- Array of Intermediate Predictor OrdinatescumulativeProbabilityArray- Array of corresponding Cumulative Probabilitiesmean- The Distribution Mean- Returns:
- The R1ContinuousUniformPiecewiseDisplaced Instance
-
_predictorOrdinateArray
public double[] _predictorOrdinateArray()Retrieve the Array of Predictor Ordinates- Returns:
- The Array of Predictor Ordinates
-
piecewiseDensitySlopeArray
public double[] piecewiseDensitySlopeArray()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 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
-