nl.tudelft.simulation.jstats.distributions
Class DistDiscrete
java.lang.Object
nl.tudelft.simulation.jstats.distributions.Dist
nl.tudelft.simulation.jstats.distributions.DistDiscrete
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- DistBernoulli, DistBinomial, DistDiscreteConstant, DistDiscreteEmpirical, DistDiscreteUniform, DistGeometric, DistNegBinomial, DistPoisson
public abstract class DistDiscrete
- extends Dist
The discrete distribution. For more information on this distribution see
http://mathworld.wolfram.com/DiscreteDistribution.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
Fields inherited from class nl.tudelft.simulation.jstats.distributions.Dist |
stream |
Method Summary |
abstract long |
draw()
draws the next long from the stream. |
abstract double |
probability(int observation)
returns the propbability of the observation in this particular
distribution. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DistDiscrete
public DistDiscrete(StreamInterface stream)
- constructs a new disctete distribution
- Parameters:
stream
- the numberstream
draw
public abstract long draw()
- draws the next long from the stream.
- Returns:
- long
probability
public abstract double probability(int observation)
- returns the propbability of the observation in this particular
distribution.
- Parameters:
observation
- the discrete observation.
- Returns:
- double the probability.
Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.