|
SSJ V. 2.6.2. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object umontreal.iro.lecuyer.probdist.ContinuousDistribution umontreal.iro.lecuyer.probdist.WatsonUDist
public class WatsonUDist
Extends the class ContinuousDistribution
for the
Watson U distribution (see).
Given a sample of n independent uniforms ui over [0, 1],
the Watson statistic Un2 is defined by
Field Summary |
---|
Fields inherited from class umontreal.iro.lecuyer.probdist.ContinuousDistribution |
---|
decPrec |
Constructor Summary | |
---|---|
WatsonUDist(int n)
Constructs a Watson U distribution for a sample of size n. |
Method Summary | |
---|---|
double |
barF(double x)
Returns the complementary distribution function. |
static double |
barF(int n,
double x)
Computes the complementary distribution function bar(F)n(x), where Fn is the Watson U distribution with parameter n. |
double |
cdf(double x)
Returns the distribution function F(x). |
static double |
cdf(int n,
double x)
Computes the Watson U distribution function, i.e. |
double |
density(double x)
Returns f (x), the density evaluated at x. |
static double |
density(int n,
double x)
Computes the density of the Watson U distribution with parameter n. |
double |
getMean()
Returns the mean. |
static double |
getMean(int n)
Returns the mean of the Watson U distribution with parameter n. |
int |
getN()
Returns the parameter n of this object. |
double[] |
getParams()
Return an array containing the parameter n of this object. |
double |
getStandardDeviation()
Returns the standard deviation. |
static double |
getStandardDeviation(int n)
Returns the standard deviation of the Watson U distribution with parameter n. |
double |
getVariance()
Returns the variance. |
static double |
getVariance(int n)
Returns the variance of the Watson U distribution with parameter n. |
double |
inverseF(double u)
Returns the inverse distribution function x = F-1(u). |
static double |
inverseF(int n,
double u)
Computes x = Fn-1(u), where Fn is the Watson U distribution with parameter n. |
void |
setN(int n)
Sets the parameter n of this object. |
String |
toString()
|
Methods inherited from class umontreal.iro.lecuyer.probdist.ContinuousDistribution |
---|
getXinf, getXsup, inverseBisection, inverseBrent, setXinf, setXsup |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WatsonUDist(int n)
Method Detail |
---|
public double density(double x)
ContinuousDistribution
density
in class ContinuousDistribution
x
- value at which the density is evaluated
public double cdf(double x)
Distribution
x
- value at which the distribution function is evaluated
public double barF(double x)
ContinuousDistribution
barF
in interface Distribution
barF
in class ContinuousDistribution
x
- value at which the complementary distribution function is evaluated
public double inverseF(double u)
ContinuousDistribution
inverseF
in interface Distribution
inverseF
in class ContinuousDistribution
u
- value at which the inverse distribution function is evaluated
public double getMean()
ContinuousDistribution
getMean
in interface Distribution
getMean
in class ContinuousDistribution
public double getVariance()
ContinuousDistribution
getVariance
in interface Distribution
getVariance
in class ContinuousDistribution
public double getStandardDeviation()
ContinuousDistribution
getStandardDeviation
in interface Distribution
getStandardDeviation
in class ContinuousDistribution
public static double density(int n, double x)
public static double cdf(int n, double x)
public static double barF(int n, double x)
public static double inverseF(int n, double u)
public static double getMean(int n)
public static double getVariance(int n)
public static double getStandardDeviation(int n)
public int getN()
public void setN(int n)
public double[] getParams()
public String toString()
toString
in class Object
|
SSJ V. 2.6.2. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |