nl.tudelft.simulation.jstats.distributions
Class DistBeta

java.lang.Object
  extended bynl.tudelft.simulation.jstats.distributions.Dist
      extended bynl.tudelft.simulation.jstats.distributions.DistContinuous
          extended bynl.tudelft.simulation.jstats.distributions.DistBeta
All Implemented Interfaces:
java.io.Serializable

public class DistBeta
extends DistContinuous

The Beta distribution. For more information on this distribution see http://mathworld.wolfram.com/BetaDistribution.html

(c) copyright 2002-2004 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public License (GPL) , no warranty

Since:
1.2
Version:
1.10 2004-03-22
Author:
Alexander Verbraeck
Peter Jacobs
See Also:
Serialized Form

Field Summary
 
Fields inherited from class nl.tudelft.simulation.jstats.distributions.Dist
stream
 
Constructor Summary
DistBeta(StreamInterface stream, double alpha1, double alpha2)
          constructs a new beta 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
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DistBeta

public DistBeta(StreamInterface stream,
                double alpha1,
                double alpha2)
constructs a new beta distribution.

Parameters:
stream - the stream.
alpha1 - the first alpha parameter for the distribution.
alpha2 - the second alpha parameter for the distribution.
Method Detail

draw

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

Specified by:
draw in class DistContinuous
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

Specified by:
probDensity in class DistContinuous
Parameters:
observation - the observation.
Returns:
double the probability density.
See Also:
#probDensity(double)

toString

public java.lang.String toString()
See Also:
Object.toString()


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