|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.uah.math.distributions.Distribution
Distribution: An abstract implmentation of a real probability distribution
| Field Summary | |
static int |
CONTINUOUS
|
static int |
DISCRETE
|
static int |
MIXED
|
| Constructor Summary | |
Distribution()
|
|
| Method Summary | |
static double |
betaCDF(double x,
double a,
double b)
The method computes the beta CDF. |
static double |
comb(double n,
int k)
This method computes the number of combinations of k objects chosen from a population of n objects |
static double |
factorial(int k)
This method computes k! |
static double |
gamma(double x)
This method computes the gamma function. |
static double |
gammaCDF(double x,
double a)
This method computes the CDF of the gamma distribution with shape parameter a and scale parameter 1 |
double |
getCDF(double x)
This method returns a default approximate cumulative distribution function. |
abstract double |
getDensity(double x)
The getDensity method is abstract and must be overridden for any specific distribuiton |
Domain |
getDomain()
This method returns the domain of the distribution. |
double |
getFailureRate(double x)
This method computes the failure rate function |
double |
getMaxDensity()
This method returns the largest (finite) value of the getDensity function on the finite set of domain values. |
double |
getMean()
This method returns a default approximate mean, based on the finite set of domain values. |
double |
getMedian()
This method computes a default approximate median. |
double |
getQuantile(double p)
This method computes an approximate getQuantile function. |
double |
getSD()
This method returns the standard deviation, as the square root of the variance |
int |
getType()
This method returns the type of the distribution (discrete or continuous) |
double |
getVariance()
This method returns a default approximate variance. |
static double |
logGamma(double x)
This method computes the log of the gamma function. |
static double |
perm(double n,
int k)
This method computes the number of permuatations of k objects chosen from a population of n objects. |
void |
setParameters(double a,
double b,
double w,
int t)
This method defines a partition of an interval that acts as a default domain for the distribution, for purposes of data collection and for default computations. |
double |
simulate()
This method computes a default simulation of a value from the distribution, as a random getQuantile. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DISCRETE
public static final int CONTINUOUS
public static final int MIXED
| Constructor Detail |
public Distribution()
| Method Detail |
public abstract double getDensity(double x)
public void setParameters(double a,
double b,
double w,
int t)
public Domain getDomain()
public final int getType()
public double getMaxDensity()
public double getMean()
public double getVariance()
public double getSD()
public double getCDF(double x)
public double getQuantile(double p)
public double simulate()
public double getMedian()
public double getFailureRate(double x)
public static double perm(double n,
int k)
public static double factorial(int k)
public static double comb(double n,
int k)
public static double logGamma(double x)
public static double gamma(double x)
public static double gammaCDF(double x,
double a)
public static double betaCDF(double x,
double a,
double b)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||