Class ExponentialIntGenerator
- java.lang.Object
-
- elki.utilities.datastructures.range.ExponentialIntGenerator
-
- All Implemented Interfaces:
IntGenerator
public class ExponentialIntGenerator extends java.lang.Object implements IntGenerator
Generate an exponential range.- Since:
- 0.7.5
- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Constructor Description ExponentialIntGenerator(int start, int factor, int stop)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
forEach(java.util.function.IntConsumer c)
Process the entire series once.int
getMax()
Maximum value of the stream.int
getMin()
Minimum value of the stream.java.lang.StringBuilder
serializeTo(java.lang.StringBuilder buf)
Produce a textual representation.java.lang.String
toString()
-
-
-
Method Detail
-
getMin
public int getMin()
Description copied from interface:IntGenerator
Minimum value of the stream.- Specified by:
getMin
in interfaceIntGenerator
- Returns:
- Minimum
-
getMax
public int getMax()
Description copied from interface:IntGenerator
Maximum value of the stream.- Specified by:
getMax
in interfaceIntGenerator
- Returns:
- Maximum
-
forEach
public void forEach(java.util.function.IntConsumer c)
Description copied from interface:IntGenerator
Process the entire series once.- Specified by:
forEach
in interfaceIntGenerator
- Parameters:
c
- Consumer
-
serializeTo
public java.lang.StringBuilder serializeTo(java.lang.StringBuilder buf)
Description copied from interface:IntGenerator
Produce a textual representation.- Specified by:
serializeTo
in interfaceIntGenerator
- Parameters:
buf
- Output buffer.- Returns:
- Buffer
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-