org.apache.mahout.math.jet.random
Class Poisson

java.lang.Object
  extended by org.apache.mahout.math.PersistentObject
      extended by org.apache.mahout.math.jet.random.AbstractDistribution
          extended by org.apache.mahout.math.jet.random.AbstractDiscreteDistribution
              extended by org.apache.mahout.math.jet.random.Poisson
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, DoubleFunction, IntFunction, UnaryFunction

Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.

@Deprecated
public class Poisson
extends AbstractDiscreteDistribution

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.mahout.math.jet.random.AbstractDistribution
randomGenerator
 
Constructor Summary
Poisson(double mean, RandomEngine randomGenerator)
          Deprecated. Constructs a poisson 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 number from the distribution.
 int nextInt(double theMean)
          Deprecated. Returns a random number from the distribution; bypasses the internal state.
 double pdf(int k)
          Deprecated. Returns the probability distribution function.
 void setMean(double mean)
          Deprecated. Sets the mean.
static int staticNextInt(double mean)
          Deprecated. Returns a random number from the distribution with the given mean.
 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, makeDefaultGenerator, nextByte, nextChar, nextFloat, nextLong, setRandomGenerator
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Poisson

public Poisson(double mean,
               RandomEngine randomGenerator)
Deprecated. 
Constructs a poisson distribution. Example: mean=1.0.

Method Detail

cdf

public double cdf(int k)
Deprecated. 
Returns the cumulative distribution function.


clone

public java.lang.Object clone()
Deprecated. 
Returns a deep copy of the receiver; the copy will produce identical sequences. After this call has returned, the copy and the receiver have equal but separate state.

Overrides:
clone in class AbstractDistribution
Returns:
a copy of the receiver.

nextInt

public int nextInt()
Deprecated. 
Returns a random number from the distribution.

Overrides:
nextInt in class AbstractDistribution

nextInt

public int nextInt(double theMean)
Deprecated. 
Returns a random number from the distribution; bypasses the internal state.


pdf

public double pdf(int k)
Deprecated. 
Returns the probability distribution function.


setMean

public void setMean(double mean)
Deprecated. 
Sets the mean.


staticNextInt

public static int staticNextInt(double mean)
Deprecated. 
Returns a random number from the distribution with the given mean.


toString

public java.lang.String toString()
Deprecated. 
Returns a String representation of the receiver.

Overrides:
toString in class java.lang.Object


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.