public class NormalisedBinnedData extends java.lang.Object implements BinnedData
BinnedData.Bin
Constructor and Description |
---|
NormalisedBinnedData(BinnedData base)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.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.
|
public NormalisedBinnedData(BinnedData base)
base
- binned data object providing basic functionalitypublic 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 java.util.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 omittedBinnedData.Bin
instancesCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.