|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcern.colt.PersistentObject
cern.jet.random.AbstractDistribution
cern.jet.random.AbstractContinousDistribution
cern.jet.random.Uniform
jas.random.UniformDistribution
public class UniformDistribution
Well known probability distribution. This class is a wrapper for the Uniform class of the COLT library. See cern.jet.random.Uniform API documentation for more details.
Title: JAS
Description: Java Agent-based Simulation library
Copyright (C) 2002 Michele Sonnessa
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
| Constructor Summary | |
|---|---|
UniformDistribution()
Create a uniform random generator with min=0.0 and max=1.0 and the default generator of JAS engine (Sim.getRnd() generator). |
|
UniformDistribution(double min,
double max)
Create a uniform random generator with given parameters and the default generator of JAS engine (Sim.getRnd() generator). |
|
UniformDistribution(double min,
double max,
cern.jet.random.engine.RandomEngine randomGenerator)
Create a uniform random generator with given parameters and a given generator. |
|
| Method Summary | |
|---|---|
static double |
staticNextDouble(double min,
double max)
Unsupported operation. |
| Methods inherited from class cern.jet.random.Uniform |
|---|
cdf, nextBoolean, nextDouble, nextDoubleFromTo, nextFloatFromTo, nextInt, nextIntFromTo, nextLongFromTo, pdf, setState, staticNextBoolean, staticNextDouble, staticNextDoubleFromTo, staticNextFloatFromTo, staticNextIntFromTo, staticNextLongFromTo, staticSetRandomEngine, toString |
| Methods inherited from class cern.jet.random.AbstractDistribution |
|---|
apply, apply, clone, makeDefaultGenerator |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UniformDistribution()
public UniformDistribution(double min,
double max)
min - Well known parameter of Uniform distribution.max - Well known parameter of Uniform distribution.
public UniformDistribution(double min,
double max,
cern.jet.random.engine.RandomEngine randomGenerator)
min - Well known parameter of Uniform distribution.max - Well known parameter of Uniform distribution.randomGenerator - A random number generator. It is taken
from COLT library. See cern.jet.random.engine.RandomEngine for
more details.| Method Detail |
|---|
public static double staticNextDouble(double min,
double max)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||