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

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.AbstractContinousDistribution
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, org.apache.mahout.math.function.DoubleFunction, IntFunction, UnaryFunction
Direct Known Subclasses:
Beta, BreitWigner, ChiSquare, Empirical, Exponential, ExponentialPower, Gamma, Hyperbolic, Logarithmic, Normal, StudentT, Uniform, VonMises

public abstract class AbstractContinousDistribution
extends AbstractDistribution

Abstract base class for all continuous distributions. Continuous distributions have probability density and a cumulative distribution functions.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.mahout.math.jet.random.AbstractDistribution
randomGenerator
 
Constructor Summary
AbstractContinousDistribution()
           
 
Method Summary
 double cdf(double x)
           
 int nextInt()
           
 double pdf(double x)
           
 
Methods inherited from class org.apache.mahout.math.jet.random.AbstractDistribution
apply, apply, getRandomGenerator, nextDouble, setRandomGenerator
 
Methods inherited from class org.apache.mahout.math.PersistentObject
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractContinousDistribution

public AbstractContinousDistribution()
Method Detail

cdf

public double cdf(double x)

pdf

public double pdf(double x)

nextInt

public int nextInt()
Specified by:
nextInt in class AbstractDistribution
Returns:
A random number from the distribution; returns (int) Math.round(nextDouble()). Override this method if necessary.


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