Package org.drip.measure.lebesgue
Class R1Uniform
java.lang.Object
org.drip.measure.continuous.R1Univariate
org.drip.measure.lebesgue.R1Uniform
- Direct Known Subclasses:
R1PiecewiseDisplaced
,R1PiecewiseLinear
public class R1Uniform extends R1Univariate
R1Uniform implements the R1 Lebesgue (i.e., Bounded Uniform) Distribution, with a
Uniform Distribution between a Lower and an Upper Bound.
- 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 R1Uniform(double dblLeftPredictorOrdinateEdge, double dblRightPredictorOrdinateEdge)
Construct a R^1 Bounded Uniform Distribution -
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
incremental(double dblXLeft, double dblXRight)
Compute the Incremental under the Distribution between the 2 variatesdouble
invCumulative(double dblY)
Compute the inverse cumulative under the distribution corresponding to the given valuedouble
leftEdge()
Retrieve the Left Predictor Ordinate Edgedouble
mean()
Retrieve the Mean of the Distributiondouble
rightEdge()
Retrieve the Right Predictor Ordinate Edgedouble[]
support()
Lay out the Support of the PDF Rangedouble
variance()
Retrieve the Variance of the DistributionMethods 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
-
R1Uniform
public R1Uniform(double dblLeftPredictorOrdinateEdge, double dblRightPredictorOrdinateEdge) throws java.lang.ExceptionConstruct a R^1 Bounded Uniform Distribution- Parameters:
dblLeftPredictorOrdinateEdge
- The Left Predictor Ordinate EdgedblRightPredictorOrdinateEdge
- The Right Predictor Ordinate Edge- Throws:
java.lang.Exception
- Thrown if the inputs are invalid
-
-
Method Details
-
leftEdge
public double leftEdge()Retrieve the Left Predictor Ordinate Edge- Returns:
- The Left Predictor Ordinate Edge
-
rightEdge
public double rightEdge()Retrieve the Right Predictor Ordinate Edge- Returns:
- The Right Predictor Ordinat Edge
-
support
public double[] support()Description copied from class:R1Univariate
Lay out the Support of the PDF Range- Specified by:
support
in classR1Univariate
- Returns:
- Support of the PDF Range
-
cumulative
public double cumulative(double dblX) throws java.lang.ExceptionDescription copied from class:R1Univariate
Compute the cumulative under the distribution to the given value- Specified by:
cumulative
in classR1Univariate
- Parameters:
dblX
- Variate to which the cumulative is to be computed- Returns:
- The cumulative
- Throws:
java.lang.Exception
- Thrown if the inputs are invalid
-
incremental
public double incremental(double dblXLeft, double dblXRight) throws java.lang.ExceptionDescription copied from class:R1Univariate
Compute the Incremental under the Distribution between the 2 variates- Overrides:
incremental
in classR1Univariate
- Parameters:
dblXLeft
- Left Variate to which the cumulative is to be computeddblXRight
- Right Variate to which the cumulative is to be computed- Returns:
- The Incremental under the Distribution between the 2 variates
- 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 classR1Univariate
- 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- Specified by:
density
in classR1Univariate
- Parameters:
dblX
- Variate at which the Density needs to be computed- Returns:
- The Density
- Throws:
java.lang.Exception
- Thrown if the input is invalid
-
mean
public double mean()Description copied from class:R1Univariate
Retrieve the Mean of the Distribution- Specified by:
mean
in classR1Univariate
- Returns:
- The Mean of the Distribution
-
variance
public double variance()Description copied from class:R1Univariate
Retrieve the Variance of the Distribution- Specified by:
variance
in classR1Univariate
- Returns:
- The Variance of the Distribution
-
histogram
Description copied from class:R1Univariate
Retrieve the Univariate Weighted Histogram- Overrides:
histogram
in classR1Univariate
- Returns:
- The Univariate Weighted Histogram
-