|
||||||||||
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.AbstractDiscreteDistribution
org.apache.mahout.math.jet.random.EmpiricalWalker
@Deprecated public final class EmpiricalWalker
Field Summary |
---|
Fields inherited from class org.apache.mahout.math.jet.random.AbstractDistribution |
---|
randomGenerator |
Constructor Summary | |
---|---|
EmpiricalWalker(double[] pdf,
int interpolationType,
java.util.Random randomGenerator)
Deprecated. Constructs an Empirical distribution. |
Method Summary | |
---|---|
double |
cdf(int k)
Deprecated. Returns the cumulative distribution function. |
java.lang.Object |
clone()
Deprecated. Returns a deep copy of the receiver; the copy will produce identical sequences. |
int |
nextInt()
Deprecated. Returns a random integer k with probability pdf(k). |
double |
pdf(int k)
Deprecated. Returns the probability distribution function. |
void |
setState(double[] pdf,
int interpolationType)
Deprecated. Sets the distribution parameters. |
void |
setState2(double[] pdf)
Deprecated. Sets the distribution parameters. |
java.lang.String |
toString()
Deprecated. Returns a String representation of the receiver. |
Methods inherited from class org.apache.mahout.math.jet.random.AbstractDiscreteDistribution |
---|
nextDouble |
Methods inherited from class org.apache.mahout.math.jet.random.AbstractDistribution |
---|
apply, apply, getRandomGenerator, setRandomGenerator |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EmpiricalWalker(double[] pdf, int interpolationType, java.util.Random randomGenerator)
pdf
- the probability distribution function.interpolationType
- can be either
Empirical.NO_INTERPOLATION or Empirical.LINEAR_INTERPOLATION.randomGenerator
- a uniform random number generator.
java.lang.IllegalArgumentException
- if at least one of the three conditions above is violated.Method Detail |
---|
public double cdf(int k)
public java.lang.Object clone()
clone
in class org.apache.mahout.math.PersistentObject
public int nextInt()
nextInt
in class AbstractDiscreteDistribution
public double pdf(int k)
public void setState(double[] pdf, int interpolationType)
pdf
- probability distribution function.
java.lang.IllegalArgumentException
- if at least one of the three conditions above is violated.public void setState2(double[] pdf)
pdf
- probability distribution function.
java.lang.IllegalArgumentException
- if at least one of the three conditions above is violated.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 |