|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.cs.cisst.algorithms.optimize.fmg.util.IntRange1D
public class IntRange1D
A class to represent a one-diensional range of integer values.
Constructor Summary | |
---|---|
IntRange1D(int lower,
int upper)
construct from lower and upper boundary. |
Method Summary | |
---|---|
int |
from()
return lower boundary. |
int |
size()
return the number of integer values lying in the range. |
int |
to()
return upper boundary. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntRange1D(int lower, int upper)
It is perfectly legal for lower boundary value to be greater then the upper boundary value.
The upper boundary is considered being part of the range.
lower
- the lower boundary of the rangeupper
- the upper boundary of the rangeMethod Detail |
---|
public int from()
public int to()
public int size()
The size is defined as lower - upper + 1, i.e. the upper boundary is part of the range.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |