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

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
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, DoubleFunction, IntFunction, UnaryFunction
Direct Known Subclasses:
Binomial, EmpiricalWalker, HyperGeometric, NegativeBinomial, Poisson, PoissonSlow, Zeta

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

@Deprecated
public abstract class AbstractDiscreteDistribution
extends AbstractDistribution

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.mahout.math.jet.random.AbstractDistribution
randomGenerator
 
Constructor Summary
protected AbstractDiscreteDistribution()
          Deprecated. Makes this class non instantiable, but still let's others inherit from it.
 
Method Summary
 double nextDouble()
          Deprecated. Returns a random number from the distribution; returns (double) nextInt().
 
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, toString, wait, wait, wait
 

Constructor Detail

AbstractDiscreteDistribution

protected AbstractDiscreteDistribution()
Deprecated. 
Makes this class non instantiable, but still let's others inherit from it.

Method Detail

nextDouble

public double nextDouble()
Deprecated. 
Returns a random number from the distribution; returns (double) nextInt().

Specified by:
nextDouble in class AbstractDistribution


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