nl.tudelft.simulation.jstats.distributions
Class DistLogNormal

java.lang.Object
  extended by nl.tudelft.simulation.jstats.distributions.Dist
      extended by nl.tudelft.simulation.jstats.distributions.DistContinuous
          extended by nl.tudelft.simulation.jstats.distributions.DistNormal
              extended by nl.tudelft.simulation.jstats.distributions.DistLogNormal
All Implemented Interfaces:
Serializable

public class DistLogNormal
extends DistNormal

The LogNormal distribution. For more information on this distribution see http://mathworld.wolfram.com/LogNormalDistribution.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.DistNormal
CUMULATIVE_NORMAL_PROPABILITIES, haveNextNextGaussian, mu, sigma
 
Fields inherited from class nl.tudelft.simulation.jstats.distributions.Dist
stream
 
Constructor Summary
DistLogNormal(StreamInterface stream, double mu, double sigma)
          constructs a new logaritmic normal distribution
 
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
 String toString()
           
 
Methods inherited from class nl.tudelft.simulation.jstats.distributions.DistNormal
getCumulativeProbability, getInverseCumulativeProbability, nextGaussian
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DistLogNormal

public DistLogNormal(StreamInterface stream,
                     double mu,
                     double sigma)
constructs a new logaritmic normal distribution

Parameters:
stream - the numberStream
mu - the medium
sigma - the standard deviation
Method Detail

draw

public double draw()
Description copied from class: DistContinuous
draws the next stream value according to the probability of this this distribution.

Overrides:
draw in class DistNormal
Returns:
the next double value drawn.
See Also:
DistContinuous.draw()

probDensity

public double probDensity(double observation)
Description copied from class: DistContinuous
returns the propbability density value of an observation

Overrides:
probDensity in class DistNormal
Parameters:
observation - the observation.
Returns:
double the probability density.
See Also:
#probDensity(double)

toString

public String toString()
Overrides:
toString in class DistNormal
See Also:
Object.toString()


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