public class R1UnivariateNormal extends R1
Constructor and Description |
---|
R1UnivariateNormal(double dblMean,
double dblSigma)
Construct a R1 Normal/Gaussian Distribution
|
Modifier and Type | Method and Description |
---|---|
double |
confidence(double dblWidth)
Compute the Confidence given the Width around the Mean
|
double |
confidenceInterval(double dblConfidence)
Compute the Width around the Mean given the Confidence Level
|
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
|
double |
errorFunction(double dblX)
Compute the Error Function Around an Absolute Width around the Mean
|
Array2D |
histogram()
Retrieve the Univariate Weighted Histogram
|
double |
incremental(double dblXLeft,
double dblXRight)
Compute the incremental under the distribution between the 2 variates
|
double |
invCumulative(double dblY)
Compute the inverse cumulative under the distribution corresponding to the given value
|
double |
mean()
Retrieve the Mean of the Distribution
|
static R1UnivariateNormal |
Standard()
Generate a N (0, 1) distribution
|
double |
variance()
Retrieve the Variance of the Distribution
|
public R1UnivariateNormal(double dblMean, double dblSigma) throws java.lang.Exception
dblMean
- Mean of the DistributiondblSigma
- Sigma of the Distributionjava.lang.Exception
- Thrown if the inputs are invalidpublic static final R1UnivariateNormal Standard()
public double cumulative(double dblX) throws java.lang.Exception
R1
cumulative
in class R1
dblX
- Variate to which the cumulative is to be computedjava.lang.Exception
- Thrown if the inputs are invalidpublic double incremental(double dblXLeft, double dblXRight) throws java.lang.Exception
R1
incremental
in class R1
dblXLeft
- Left Variate to which the cumulative is to be computeddblXRight
- Right 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 R1
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
public double mean()
R1
public double variance()
R1
public Array2D histogram()
R1
public double errorFunction(double dblX) throws java.lang.Exception
dblX
- The Widthjava.lang.Exception
- Thrown if the Inputs are Invalidpublic double confidence(double dblWidth) throws java.lang.Exception
dblWidth
- The Widthjava.lang.Exception
- Thrown if the Inputs are Invalidpublic double confidenceInterval(double dblConfidence) throws java.lang.Exception
dblConfidence
- The Confidence Leveljava.lang.Exception
- Thrown if the Inputs are Invalid