public class R1PiecewiseLinear extends R1Uniform
Constructor and Description |
---|
R1PiecewiseLinear(double dblLeftPredictorOrdinateEdge,
double dblRightPredictorOrdinateEdge,
double[] adblPredictorOrdinate,
double[] adblPiecewiseDensity)
R1PiecewiseLinear Constructor
|
Modifier and Type | Method and Description |
---|---|
double |
cumulative(double dblX)
Compute the cumulative under the distribution to the given value
|
double |
density(double dblX)
Compute the Density under the Distribution at the given Variate
|
Array2D |
histogram()
Retrieve the Univariate Weighted Histogram
|
double |
invCumulative(double dblY)
Compute the inverse cumulative under the distribution corresponding to the given value
|
double[] |
piecewiseDensities()
Retrieve the Array of Piecewise Densities
|
double[] |
predictorOrdinates()
Retrieve the Array of Predictor Ordinates
|
static R1PiecewiseLinear |
Standard(double dblLeftPredictorOrdinateEdge,
double dblRightPredictorOrdinateEdge,
double[] adblPredictorOrdinate,
double[] adblCumulativeProbability)
Calibrate an R1PiecewiseLinear Lebesgue Instance
|
public R1PiecewiseLinear(double dblLeftPredictorOrdinateEdge, double dblRightPredictorOrdinateEdge, double[] adblPredictorOrdinate, double[] adblPiecewiseDensity) throws java.lang.Exception
dblLeftPredictorOrdinateEdge
- Left Predictor Ordinate EdgedblRightPredictorOrdinateEdge
- Right Predictor Ordinate EdgeadblPredictorOrdinate
- Array of Intermediate Predictor OrdinatesadblPiecewiseDensity
- Array of corresponding Piece-wise Densitiesjava.lang.Exception
- Thrown if the Inputs are invalidpublic static final R1PiecewiseLinear Standard(double dblLeftPredictorOrdinateEdge, double dblRightPredictorOrdinateEdge, double[] adblPredictorOrdinate, double[] adblCumulativeProbability)
dblLeftPredictorOrdinateEdge
- Left Predictor Ordinate EdgedblRightPredictorOrdinateEdge
- Right Predictor Ordinate EdgeadblPredictorOrdinate
- Array of Intermediate Predictor OrdinatesadblCumulativeProbability
- Array of corresponding Cumulative Probabilitiespublic double[] predictorOrdinates()
public double[] piecewiseDensities()
public double cumulative(double dblX) throws java.lang.Exception
R1
cumulative
in class R1Uniform
dblX
- Variate to which the cumulative is to be computedjava.lang.Exception
- Thrown if the inputs are invalidpublic double invCumulative(double dblY) throws java.lang.Exception
R1
invCumulative
in class R1Uniform
dblY
- Value corresponding to which the inverse cumulative is to be computedjava.lang.Exception
- Thrown if the input is invalidpublic double density(double dblX) throws java.lang.Exception
R1