public class BoundedUniformIntegerDistribution extends R1
| Constructor and Description |
|---|
BoundedUniformIntegerDistribution(int iStart,
int iFinish)
Construct a Univariate Bounded Uniform Integer Distribution
|
| 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
|
int |
finish()
Retrieve the Finish
|
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
|
int |
start()
Retrieve the Start
|
double |
variance()
Retrieve the Variance of the Distribution
|
public BoundedUniformIntegerDistribution(int iStart,
int iFinish)
throws java.lang.Exception
iStart - The Starting IntegeriFinish - The Finishing Integerjava.lang.Exception - Thrown if the inputs are invalidpublic int start()
public int finish()
public double cumulative(double dblX)
throws java.lang.Exception
R1cumulative in class R1dblX - 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
R1incremental in class R1dblXLeft - 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
R1invCumulative in class R1dblY - 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
R1public double mean()
R1public double variance()
R1