|
||||||||||
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.Empirical
@Deprecated public class Empirical
Field Summary |
---|
Fields inherited from class org.apache.mahout.math.jet.random.AbstractDistribution |
---|
randomGenerator |
Constructor Summary | |
---|---|
Empirical(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. |
double |
nextDouble()
Deprecated. Returns a random number from the distribution. |
double |
pdf(double x)
Deprecated. Returns the probability distribution function. |
double |
pdf(int k)
Deprecated. Returns the probability distribution function. |
void |
setState(double[] pdf,
int interpolationType)
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.AbstractContinousDistribution |
---|
cdf, nextInt |
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 Empirical(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 double nextDouble()
nextDouble
in class AbstractDistribution
public double pdf(double x)
pdf
in class AbstractContinousDistribution
public double pdf(int k)
public void setState(double[] pdf, int interpolationType)
pdf
- probability distribution function.interpolationType
- can be either Empirical.NO_INTERPOLATION or Empirical.LINEAR_INTERPOLATION.
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 |