Package samer.maths.random
Class BoundedUniform
- java.lang.Object
-
- samer.maths.random.BaseRandom
-
- samer.maths.random.BoundedUniform
-
- All Implemented Interfaces:
- java.util.Observer, Generator
public class BoundedUniform extends BaseRandom implements java.util.Observer
-
-
Field Summary
-
Fields inherited from class samer.maths.random.BaseRandom
rnd
-
-
Constructor Summary
Constructors Constructor and Description BoundedUniform()
BoundedUniform(double min, double max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
dispose()
double
next()
void
next(double[] x)
java.lang.String
toString()
void
update(java.util.Observable o, java.lang.Object oo)
-
-
-
Constructor Detail
-
BoundedUniform
public BoundedUniform()
-
BoundedUniform
public BoundedUniform(double min, double max)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceGenerator
- Overrides:
dispose
in classBaseRandom
-
next
public void next(double[] x)
- Specified by:
next
in interfaceGenerator
- Overrides:
next
in classBaseRandom
-
update
public void update(java.util.Observable o, java.lang.Object oo)
- Specified by:
update
in interfacejava.util.Observer
-
-