Class R1PiecewiseDisplaced

java.lang.Object

public class R1PiecewiseDisplaced
extends R1Uniform
R1PiecewiseDisplaced implements the Displaced Piecewise Linear R1 Distributions. It exports the Methods corresponding to the R1 Lebesgue Base Class.

Author:
Lakshmi Krishnamurthy
  • Constructor Details

    • R1PiecewiseDisplaced

      public R1PiecewiseDisplaced​(double dblLeftPredictorOrdinateEdge, double dblRightPredictorOrdinateEdge, double[] adblPredictorOrdinate, double[] adblPiecewiseDensitySlope, double dblDensityDisplacement) throws java.lang.Exception
      R1PiecewiseDisplaced Constructor
      Parameters:
      dblLeftPredictorOrdinateEdge - Left Predictor Ordinate Edge
      dblRightPredictorOrdinateEdge - Right Predictor Ordinate Edge
      adblPredictorOrdinate - Array of Intermediate Predictor Ordinates
      adblPiecewiseDensitySlope - Array of corresponding Piece-wise Density Slopes
      dblDensityDisplacement - 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 Edge
      dblRightPredictorOrdinateEdge - Right Predictor Ordinate Edge
      adblPredictorOrdinate - Array of Intermediate Predictor Ordinates
      adblCumulativeProbability - Array of corresponding Cumulative Probabilities
      dblMean - 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.Exception
      Description copied from class: R1Univariate
      Compute the cumulative under the distribution to the given value
      Overrides:
      cumulative in class R1Uniform
      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.Exception
      Description copied from class: R1Univariate
      Compute the inverse cumulative under the distribution corresponding to the given value
      Overrides:
      invCumulative in class R1Uniform
      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.Exception
      Description copied from class: R1Univariate
      Compute the Density under the Distribution at the given Variate
      Overrides:
      density in class R1Uniform
      Parameters:
      dblX - Variate at which the Density needs to be computed
      Returns:
      The Density
      Throws:
      java.lang.Exception - Thrown if the input is invalid
    • histogram

      public Array2D histogram()
      Description copied from class: R1Univariate
      Retrieve the Univariate Weighted Histogram
      Overrides:
      histogram in class R1Uniform
      Returns:
      The Univariate Weighted Histogram