|
Jive Forums API (5.5.8) 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.SigFigSequence
public class SigFigSequence
Generate bins by truncating all but a specified # of significant figures from an element.
| Constructor Summary | |
|---|---|
SigFigSequence(int sigFig,
long step)
Generate a new BinSequence object that truncates all but a specified # of significant figures from in put elements. |
|
| Method Summary | |
|---|---|
Bin |
getBin(Element element)
Take an element, strip out all but sigFig significant figures, and build a new bin. |
Bin[] |
getBins(Element minElement,
Element maxElement)
Return a sequence of bins starting with the bin containing minElement and ending with the bin containing maxElement. |
Bin[] |
getBins(Element minElement,
Element maxElement,
boolean containsMin,
boolean containsMax)
Return a sequence of bins. |
Bin |
getNext(Bin bin)
Given a Bin, return the next Bin in the sequence |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SigFigSequence(int sigFig,
long step)
Generate a new BinSequence object that truncates all but a specified # of significant figures from in put elements. The sigFig parameter sets the number of significant figures to keep:
sigFig - The number of significant figures to retainstep - The step size to use in setting bin widths| Method Detail |
|---|
public Bin getBin(Element element)
getBin in interface BinSequenceelement - The element to be mapped to a Bin
public Bin getNext(Bin bin)
getNext in interface BinSequencebin - The current Bin
public Bin[] getBins(Element minElement,
Element maxElement)
getBins in interface BinSequenceminElement - An element contained in the first binmaxElement - An element contained in the last bin
public Bin[] getBins(Element minElement,
Element maxElement,
boolean containsMin,
boolean containsMax)
getBins in interface BinSequenceminElement - 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 static void main(java.lang.String[] args)
|
Jive Forums Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||