pal.math
public static class OrderEnumerator.Utils extends java.lang.Object
Constructor and Description |
---|
OrderEnumerator.Utils() |
public static final OrderEnumerator getConstant(int index)
index
- The index to always returnpublic static final OrderEnumerator getOrdered(int size)
size
- the number of different indexes returned (between 0 and size-1)public static final OrderEnumerator getShuffled(int size)
size
- the number of different indexes returned (between 0 and size-1)public static final OrderEnumerator getBiasAlternating(OrderEnumerator primary, OrderEnumerator secondary)
primary
- The primary OrderEnumerator, one index is taken from this enumertor than an entire sequence of the secondary is takensecondar
- The primary OrderEnumerator, the entire sequence of a secondary enumerator is taken for every single index from the primary enumeratorpublic static final OrderEnumerator getAlternating(OrderEnumerator primary, OrderEnumerator secondary)
primary
- The primary OrderEnumeratorsecondar
- The primary OrderEnumeratorpublic static final OrderEnumerator getZero()
public static final OrderEnumerator getRestricted(OrderEnumerator toRestrict, int minimum, int range)
minimum
- minmim value releasedrange
- range of values released (that is values go between minimum (inclusive) and minimum+range(exclusive)public static final OrderEnumerator getAdjusted(OrderEnumerator toAdjust, int adjustmentFactor)
public static final OrderEnumerator.OEFactory getZeroFactory()
public static final OrderEnumerator.OEFactory getConstantFactory(int index)
index
- The index to always returnpublic static final OrderEnumerator.OEFactory getOrderedFactory()
public static final OrderEnumerator.OEFactory getShuffledFactory()
public static final OrderEnumerator.OEFactory getAdjustedFactory(OrderEnumerator.OEFactory toAdjust, int adjustmentFactor)
adjustmentFactor
- If to adjust returns x, adjusted will return x+adjustmentFactory (it's that simple)public static final OrderEnumerator.OEFactory getRestrictedFactory(OrderEnumerator.OEFactory toRestrict, int minimum, int range)
minimum
- minmim value releasedrange
- range of values released (that is values go between minimum (inclusive) and minimum+range(exclusive)public static final OrderEnumerator.OEFactory getAlternatingFactory(OrderEnumerator.OEFactory primary, OrderEnumerator.OEFactory secondary)
public static final OrderEnumerator.OEFactory getBiasAlternatingFactory(OrderEnumerator.OEFactory primary, OrderEnumerator.OEFactory secondary)