toxi.util.datatypes
Class IntegerRange
java.lang.Object
toxi.util.datatypes.IntegerRange
- Direct Known Subclasses:
- BiasedIntegerRange
public class IntegerRange
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
min
public int min
max
public int max
currValue
public int currValue
IntegerRange
public IntegerRange()
IntegerRange
public IntegerRange(int min,
int max)
fromSamples
public static IntegerRange fromSamples(java.util.List<java.lang.Integer> samples)
adjustCurrentBy
public int adjustCurrentBy(int val)
copy
public IntegerRange copy()
getCurrent
public int getCurrent()
getMedian
public int getMedian()
isValueInRange
public boolean isValueInRange(int val)
pickRandom
public int pickRandom()
seed
public IntegerRange seed(long seed)
setCurrent
public int setCurrent(int val)
setRandom
public IntegerRange setRandom(java.util.Random rnd)
toArray
public java.lang.Integer[] toArray()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object