Range
public class IndicesRange extends java.lang.Object implements Range
int[] indices = new int[] { 1, 1, 2, 3, 5, 8, 13 }; Range r = new IndicesRange(indices);ranges over the first few Fibonacci numbers.
Constructor | Description |
---|---|
IndicesRange(int[] is) |
Initialize from integer array.
|
IndicesRange(DoubleMatrix is) |
Initialize from DoubleMatrix.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
hasMore() |
More indices available?
|
int |
index() |
Consecutive numbering of current index.
|
void |
init(int l,
int u) |
Initialize Range to available indices
|
int |
length() |
Total number of indices.
|
void |
next() |
Increase counter.
|
int |
value() |
Get current index.
|
public IndicesRange(int[] is)
public IndicesRange(DoubleMatrix is)
public void init(int l, int u)
Range
public int index()
Range
© 2008-2013 by Mikio L. Braun and contributors