public interface IntGenerator
IntStream, but it allows the
stream to be processed multiple times, and allows accessing the minimum and
maximum. This is necessary to, e.g., precompute nearest neighbors for the
maximum k employed and similar.
Duplicates values are not automatically removed, and the values are not
necessarily ordered.
TODO: fully support the Java 8 IntStream API, in particular
spliterators for parallel processing.| 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.
|
int getMin()
int getMax()
void forEach(java.util.function.IntConsumer c)
c - Consumerjava.lang.StringBuilder serializeTo(java.lang.StringBuilder buf)
buf - Output buffer.Copyright © 2019 ELKI Development Team. License information.