|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.math.PersistentObject
org.apache.mahout.math.jet.random.AbstractDistribution
org.apache.mahout.math.jet.random.AbstractContinousDistribution
org.apache.mahout.math.jet.random.ChiSquare
@Deprecated public class ChiSquare
Field Summary |
---|
Fields inherited from class org.apache.mahout.math.jet.random.AbstractDistribution |
---|
randomGenerator |
Constructor Summary | |
---|---|
ChiSquare(double freedom,
RandomEngine randomGenerator)
Deprecated. Constructs a ChiSquare distribution. |
Method Summary | |
---|---|
double |
cdf(double x)
Deprecated. Returns the cumulative distribution function. |
double |
nextDouble()
Deprecated. Returns a random number from the distribution. |
double |
nextDouble(double freedom)
Deprecated. Returns a random number from the distribution; bypasses the internal state. |
double |
pdf(double x)
Deprecated. Returns the probability distribution function. |
void |
setState(double freedom)
Deprecated. Sets the distribution parameter. |
static double |
staticNextDouble(double freedom)
Deprecated. Returns a random number from the distribution. |
java.lang.String |
toString()
Deprecated. Returns a String representation of the receiver. |
Methods inherited from class org.apache.mahout.math.jet.random.AbstractDistribution |
---|
apply, apply, clone, getRandomGenerator, makeDefaultGenerator, nextByte, nextChar, nextFloat, nextInt, nextLong, setRandomGenerator |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ChiSquare(double freedom, RandomEngine randomGenerator)
freedom
- degrees of freedom.
java.lang.IllegalArgumentException
- if freedom < 1.0.Method Detail |
---|
public double cdf(double x)
public double nextDouble()
nextDouble
in class AbstractDistribution
public double nextDouble(double freedom)
freedom
- degrees of freedom. It should hold freedom < 1.0.public double pdf(double x)
public void setState(double freedom)
freedom
- degrees of freedom.
java.lang.IllegalArgumentException
- if freedom < 1.0.public static double staticNextDouble(double freedom)
freedom
- degrees of freedom.
java.lang.IllegalArgumentException
- if freedom < 1.0.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |