public class DistEmpirical extends DistContinuous
(c) copyright 2004 Delft
University of Technology , the Netherlands.
See for project information
www.simulation.tudelft.nl/dsol
License of use: General Public
License (GPL) , no warranty
Constructor and Description |
---|
DistEmpirical(StreamInterface stream,
Double[] observations)
constructs a new DistEmpirical
|
DistEmpirical(StreamInterface stream,
List observations)
constructs a new DistEmpirical
|
DistEmpirical(StreamInterface stream,
ObservationsInterface observations)
constructs a new DistEmpirical
|
DistEmpirical(StreamInterface stream,
SortedMap observations,
boolean cummulative)
constructs a new DistEmpirical
|
Modifier and Type | Method and Description |
---|---|
double |
draw()
draws the next stream value according to the probability of this this
distribution.
|
double |
probDensity(double observation)
returns the propbability density value of an observation
|
public DistEmpirical(StreamInterface stream, ObservationsInterface observations)
stream
- the stream to useobservations
- the observations underlying this empirical
distribution. The observations do not need to be sorted. Double
observations are allowed and are used.public DistEmpirical(StreamInterface stream, Double[] observations)
stream
- the stream to useobservations
- the observations underlying this empirical
distribution. The observations do not need to be sorted. Double
observations are allowed and are used.public DistEmpirical(StreamInterface stream, List observations)
stream
- the stream to useobservations
- the observations underlying this empirical
distribution. The observations do not need to be sorted. Double
observations are allowed and are used.public DistEmpirical(StreamInterface stream, SortedMap observations, boolean cummulative)
stream
- the stream to useobservations
- the observations underlying this empirical
distribution. The observations do not need to be sorted. Double
observations are allowed and are used.cummulative
- are the probabilities cummulative?public double draw()
DistContinuous
draw
in class DistContinuous
DistContinuous.draw()
public double probDensity(double observation)
DistContinuous
probDensity
in class DistContinuous
observation
- the observation.DistContinuous.probDensity(double)
Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.