be.ac.ulg.montefiore.run.totem.util.distribution
Class UniformFloatDistribution

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.util.distribution.UniformFloatDistribution
All Implemented Interfaces:
Distribution

public class UniformFloatDistribution
extends java.lang.Object
implements Distribution

This class implements a uniform float distribution.

Creation date: 1-Jan-2004

Author:
Jean Lepropre (lepropre@run.montefiore.ulg.ac.be)

Constructor Summary
UniformFloatDistribution(double lower, double upper)
          Initialises a newly created UniformFloatDistribution object.
 
Method Summary
 double generate()
          Returns a double value according to the uniform float distribution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniformFloatDistribution

public UniformFloatDistribution(double lower,
                                double upper)
Initialises a newly created UniformFloatDistribution object.

Parameters:
lower - The lowest value this object must return (exclusive).
upper - The highest value this object must return (exclusive).
Throws:
java.lang.IllegalArgumentException - If lower is >= than upper.
Method Detail

generate

public double generate()
Returns a double value according to the uniform float distribution.

Specified by:
generate in interface Distribution


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.