|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot.NormalisedBinnedData
public class NormalisedBinnedData
Wrapper implementation of BinnedData which normalises bins so that the total value of all bins in a given subset is unity.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface uk.ac.starlink.ttools.plot.BinnedData |
---|
BinnedData.Bin |
Constructor Summary | |
---|---|
NormalisedBinnedData(BinnedData base)
Constructor. |
Method Summary | |
---|---|
Iterator |
getBinIterator(boolean includeEmpty)
Returns an iterator over the bins managed by this object. |
int |
getSetCount()
Returns the number of subsets for which this object maintains bins. |
boolean |
isInteger()
Returns false. |
void |
submitDatum(double value,
double weight,
boolean[] setFlags)
Submits a value for inclusion in this BinnedData object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NormalisedBinnedData(BinnedData base)
base
- binned data object providing basic functionalityMethod Detail |
---|
public void submitDatum(double value, double weight, boolean[] setFlags)
BinnedData
submitDatum
in interface BinnedData
value
- value for inclusionweight
- weightingsetFlags
- array of flags, one for each subset;
true for inclusion, false for exclusionpublic int getSetCount()
BinnedData
getSetCount
in interface BinnedData
public boolean isInteger()
isInteger
in interface BinnedData
Bin.getWeightedCount
returns
are integer valuespublic Iterator getBinIterator(boolean includeEmpty)
BinnedData
It is inadvisable to call BinnedData.submitDatum(double, double, boolean[])
during the
lifetime of this iterator.
getBinIterator
in interface BinnedData
includeEmpty
- if true, then all bins between the lowest
and highest must be iterated over. If false, then empty
bins may be omitted
BinnedData.Bin
instances
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |