Class IntervalRange
java.lang.Object
org.jblas.ranges.IntervalRange
- All Implemented Interfaces:
Range
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasMore()More indices available?intindex()Consecutive numbering of current index.voidinit(int lower, int upper) Initialize Range to available indicesintlength()Total number of indices.voidnext()Increase counter.toString()intvalue()Get current index.
-
Field Details
-
start
private int start -
end
private int end -
value
private int value
-
-
Constructor Details
-
IntervalRange
public IntervalRange(int a, int b) Construct new interval range. Endpoints are inclusive.
-
-
Method Details
-
init
-
length
-
next
-
index
-
value
-
hasMore
-
toString
-