Package org.uncommons.maths.number
Interface NumberGenerator<T extends java.lang.Number>
-
- Type Parameters:
T- The type (Integer, Long, Double, etc.) of number to generate.
- All Known Implementing Classes:
AdjustableNumberGenerator,BinomialGenerator,ConstantGenerator,ContinuousUniformGenerator,DiscreteUniformGenerator,ExponentialGenerator,GaussianGenerator,PoissonGenerator
public interface NumberGenerator<T extends java.lang.Number>Interface for providing different types of sequences of numbers. This is a simple but powerful abstraction that provides considerable flexibility in implementing classes that require numeric configuration. Refer to the implementations in this package for examples of how it can be used.- See Also:
ConstantGenerator,AdjustableNumberGenerator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TnextValue()
-
-
-
Method Detail
-
nextValue
T nextValue()
- Returns:
- The next value from the generator.
-
-