|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tudelft.simulation.jstats.distributions.Dist
nl.tudelft.simulation.jstats.distributions.DistContinuous
nl.tudelft.simulation.jstats.distributions.DistEmpirical
public class DistEmpirical
The histogram specifies a histogram chart for the DSOL framework.
(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
Field Summary |
---|
Fields inherited from class nl.tudelft.simulation.jstats.distributions.Dist |
---|
stream |
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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?Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |