nl.tudelft.simulation.jstats.distributions
Class DistContinuous

java.lang.Object
  extended by nl.tudelft.simulation.jstats.distributions.Dist
      extended by nl.tudelft.simulation.jstats.distributions.DistContinuous
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DistBeta, DistConstant, DistEmpirical, DistErlang, DistExponential, DistGamma, DistNormal, DistPearson5, DistPearson6, DistTriangular, DistUniform, DistWeibull

public abstract class DistContinuous
extends Dist

The Continuous distribution. For more information on this distribution see http://mathworld.wolfram.com/ContinuousDistribution.html

(c) copyright 2002-2004 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , no warranty.

Since:
1.2
Version:
$Revision: 1.1 $ $Date: 2007/01/06 13:25:42 $
Author:
Alexander Verbraeck
Peter Jacobs
See Also:
Serialized Form

Field Summary
 
Fields inherited from class nl.tudelft.simulation.jstats.distributions.Dist
stream
 
Constructor Summary
DistContinuous(StreamInterface stream)
          constructs a new continuous distribution
 
Method Summary
abstract  double draw()
          draws the next stream value according to the probability of this this distribution.
abstract  double probDensity(double observation)
          returns the propbability density value of an observation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistContinuous

public DistContinuous(StreamInterface stream)
constructs a new continuous distribution

Parameters:
stream - the stream
Method Detail

draw

public abstract double draw()
draws the next stream value according to the probability of this this distribution.

Returns:
the next double value drawn.

probDensity

public abstract double probDensity(double observation)
returns the propbability density value of an observation

Parameters:
observation - the observation.
Returns:
double the probability density.


Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.