public class ExponentialIntGenerator extends java.lang.Object implements IntGenerator
Modifier and Type | Field and Description |
---|---|
private int |
end
End value.
|
private int |
factor
Step factor.
|
private int |
start
Start value.
|
Constructor and Description |
---|
ExponentialIntGenerator(int start,
int factor,
int stop)
Constructor.
|
Modifier and Type | Method and 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() |
private int start
private int factor
private int end
public ExponentialIntGenerator(int start, int factor, int stop)
start
- Start valuefactor
- Step factor, must be positivestop
- Stop value (inclusive, if reachable)public int getMin()
IntGenerator
getMin
in interface IntGenerator
public int getMax()
IntGenerator
getMax
in interface IntGenerator
public void forEach(java.util.function.IntConsumer c)
IntGenerator
forEach
in interface IntGenerator
c
- Consumerpublic java.lang.StringBuilder serializeTo(java.lang.StringBuilder buf)
IntGenerator
serializeTo
in interface IntGenerator
buf
- Output buffer.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2019 ELKI Development Team. License information.