|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.base.stats.bin.VariableStepSequence
public class VariableStepSequence
A sequence of bins in which step size remains constant over fixed intervals. For example, we can specify a step size of 1 between 0 and 5, then a step size of 5 between 5 and 20, then a step size of 20 between 20 and 100.
Constructor Summary | |
---|---|
VariableStepSequence(long[] lowerLimit,
long[] step)
Creates new VariableStepSequence. |
Method Summary | |
---|---|
Bin |
getBin(Element element)
Map an Element to a Bin. |
Bin[] |
getBins(Element minElement,
Element maxElement)
Get a sequence of Bins. |
Bin[] |
getBins(Element minElement,
Element maxElement,
boolean containsMin,
boolean containsMax)
Get a sequence of Bins. |
Bin |
getNext(Bin bin)
Get the next Bin in the sequence. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VariableStepSequence(long[] lowerLimit, long[] step)
long[] lowerLimit = {0, 5, 20};
long[] step = {1, 5, 25};
lowerLimit
- A set of lower limits on a set of ranges of numbers.
lowerLimit must contain a strictly increasing sequence.step
- The sequence of step sizes for each range.Method Detail |
---|
public Bin getBin(Element element)
getBin
in interface BinSequence
element
- The element to be mapped to a Bin
public Bin[] getBins(Element minElement, Element maxElement)
getBins
in interface BinSequence
minElement
- An element that should be contained in the first Bin.maxElement
- An element that should be contained in the last Bin.
public Bin[] getBins(Element minElement, Element maxElement, boolean containsMin, boolean containsMax)
getBins
in interface BinSequence
minElement
- An element that defines the first Bin.maxElement
- An element that defines the last Bin.containsMin
- Should the list contain the first Bin?containsMax
- Should the list contain the last Bin?
public Bin getNext(Bin bin)
getNext
in interface BinSequence
bin
- The current Bin
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |