public abstract class DistDiscrete extends Dist
(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.
Constructor and Description |
---|
DistDiscrete(StreamInterface stream)
constructs a new disctete distribution
|
Modifier and Type | Method and Description |
---|---|
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.
|
public DistDiscrete(StreamInterface stream)
stream
- the numberstreampublic abstract long draw()
public abstract double probability(int observation)
observation
- the discrete observation.Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.