|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mahout.math.function.DoubleFunction
org.apache.mahout.math.jet.random.AbstractDistribution
org.apache.mahout.math.jet.random.AbstractContinousDistribution
org.apache.mahout.math.jet.random.Exponential
public class Exponential
| Constructor Summary | |
|---|---|
Exponential(double lambda,
Random randomGenerator)
Provides a negative exponential distribution given a rate parameter lambda and an underlying random number generator. |
|
| Method Summary | |
|---|---|
double |
cdf(double x)
Returns the cumulative distribution function. |
double |
nextDouble()
Returns a random number from the distribution. |
double |
pdf(double x)
Returns the value of the probability density function at a particular point. |
void |
setState(double lambda)
Sets the rate parameter. |
String |
toString()
Returns a String representation of the receiver. |
| Methods inherited from class org.apache.mahout.math.jet.random.AbstractContinousDistribution |
|---|
nextInt |
| Methods inherited from class org.apache.mahout.math.jet.random.AbstractDistribution |
|---|
apply, apply, getRandomGenerator, randomDouble, setRandomGenerator |
| Methods inherited from class org.apache.mahout.math.function.DoubleFunction |
|---|
isDensifying |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Exponential(double lambda,
Random randomGenerator)
lambda - The rate parameter of the distribution.randomGenerator - The PRNG that is used to generate values.| Method Detail |
|---|
public double cdf(double x)
cdf in class AbstractContinousDistributionx - The point at which the cumulative distribution function is to be evaluated.
public double nextDouble()
nextDouble in class AbstractDistributionpublic double pdf(double x)
pdf in class AbstractContinousDistributionx - The point at which the probability density function is to be evaluated.
public void setState(double lambda)
lambda - The new value of the rate parameter.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||