|
| ClassicalQuantileComputer ()=delete |
|
| ClassicalQuantileComputer (StatisticsDataset< CASA_STATP > *dataset) |
|
| ClassicalQuantileComputer (const ClassicalQuantileComputer &other) |
| copy semantics
|
|
virtual | ~ClassicalQuantileComputer () |
|
ClassicalQuantileComputer & | operator= (const ClassicalQuantileComputer &other) |
| copy semantics
|
|
virtual StatisticsAlgorithmQuantileComputer< CASA_STATP > * | clone () const |
| clone this object by returning a pointer to a copy
|
|
virtual AccumType | getMedian (uInt64 mynpts, AccumType mymin, AccumType mymax, uInt binningThreshholdSizeBytes, Bool persistSortedArray, uInt nBins) |
| Caller is responsible for passing correct values of mynpts, mymin, and mymax; no checking is done for correctness in this method.
|
|
virtual AccumType | getMedianAbsDevMed (uInt64 mynpts, AccumType mymin, AccumType mymax, uInt binningThreshholdSizeBytes, Bool persistSortedArray, uInt nBins) |
| get the median of the absolute deviation about the median of the data.
|
|
virtual AccumType | getMedianAndQuantiles (std::map< Double, AccumType > &quantiles, const std::set< Double > &fractions, uInt64 mynpts, AccumType mymin, AccumType mymax, uInt binningThreshholdSizeBytes, Bool persistSortedArray, uInt nBins) |
| If one needs to compute both the median and QuantileComputer values, it is better to call getMedianAndQuantiles() rather than getMedian() and getQuantiles() separately, as the first will scan large data sets fewer times than calling the separate methods.
|
|
virtual std::map< Double, AccumType > | getQuantiles (const std::set< Double > &fractions, uInt64 mynpts, AccumType mymin, AccumType mymax, uInt binningThreshholdSizeBytes, Bool persistSortedArray, uInt nBins) |
| Get the specified Quantiles.
|
|
virtual void | reset () |
| reset the private fields
|
|
| StatisticsAlgorithmQuantileComputer ()=delete |
|
virtual | ~StatisticsAlgorithmQuantileComputer () |
|
void | deleteSortedArray () |
| delete any (partially) sorted array
|
|
void | setDataset (StatisticsDataset< CASA_STATP > *ds) |
| This must be called upon the copy or assignment of the associated statistics algorithm object.
|
|
std::vector< CASA_STATP > & | _getSortedArray () |
| FIXME make protected once refactor is complete.
|
|
void | _setSortedArray (const std::vector< CASA_STATP > &v) |
| FIXME make protected once refactor is complete.
|
|
void | setMedian (std::shared_ptr< CASA_STATP > median) |
|
|
virtual void | _findBins (std::vector< std::vector< uInt64 > > &binCounts, std::vector< std::shared_ptr< AccumType > > &sameVal, std::vector< Bool > &allSame, const DataIterator &dataBegin, uInt64 nr, uInt dataStride, const std::vector< StatsHistogram< AccumType > > &hist, const std::vector< AccumType > &maxLimit) const |
| Get the counts of data within the specified histogram bins.
|
|
virtual void | _findBins (std::vector< std::vector< uInt64 > > &binCounts, std::vector< std::shared_ptr< AccumType > > &sameVal, std::vector< Bool > &allSame, const DataIterator &dataBegin, uInt64 nr, uInt dataStride, const DataRanges &ranges, Bool isInclude, const std::vector< StatsHistogram< AccumType > > &hist, const std::vector< AccumType > &maxLimit) const |
|
virtual void | _findBins (std::vector< std::vector< uInt64 > > &binCounts, std::vector< std::shared_ptr< AccumType > > &sameVal, std::vector< Bool > &allSame, const DataIterator &dataBegin, uInt64 nr, uInt dataStride, const MaskIterator &maskBegin, uInt maskStride, const std::vector< StatsHistogram< AccumType > > &hist, const std::vector< AccumType > &maxLimit) const |
|
virtual void | _findBins (std::vector< std::vector< uInt64 > > &binCounts, std::vector< std::shared_ptr< AccumType > > &sameVal, std::vector< Bool > &allSame, const DataIterator &dataBegin, uInt64 nr, uInt dataStride, const MaskIterator &maskBegin, uInt maskStride, const DataRanges &ranges, Bool isInclude, const std::vector< StatsHistogram< AccumType > > &hist, const std::vector< AccumType > &maxLimit) const |
|
virtual void | _findBins (std::vector< std::vector< uInt64 > > &binCounts, std::vector< std::shared_ptr< AccumType > > &sameVal, std::vector< Bool > &allSame, const DataIterator &dataBegin, const WeightsIterator &weightsBegin, uInt64 nr, uInt dataStride, const std::vector< StatsHistogram< AccumType > > &hist, const std::vector< AccumType > &maxLimit) const |
|
virtual void | _findBins (std::vector< std::vector< uInt64 > > &binCounts, std::vector< std::shared_ptr< AccumType > > &sameVal, std::vector< Bool > &allSame, const DataIterator &dataBegin, const WeightsIterator &weightsBegin, uInt64 nr, uInt dataStride, const DataRanges &ranges, Bool isInclude, const std::vector< StatsHistogram< AccumType > > &hist, const std::vector< AccumType > &maxLimit) const |
|
virtual void | _findBins (std::vector< std::vector< uInt64 > > &binCounts, std::vector< std::shared_ptr< AccumType > > &sameVal, std::vector< Bool > &allSame, const DataIterator &dataBegin, const WeightsIterator &weightsBegin, uInt64 nr, uInt dataStride, const MaskIterator &maskBegin, uInt maskStride, const DataRanges &ranges, Bool isInclude, const std::vector< StatsHistogram< AccumType > > &hist, const std::vector< AccumType > &maxLimit) const |
|
virtual void | _findBins (std::vector< std::vector< uInt64 > > &binCounts, std::vector< std::shared_ptr< AccumType > > &sameVal, std::vector< Bool > &allSame, const DataIterator &dataBegin, const WeightsIterator &weightBegin, uInt64 nr, uInt dataStride, const MaskIterator &maskBegin, uInt maskStride, const std::vector< StatsHistogram< AccumType > > &hist, const std::vector< AccumType > &maxLimit) const |
|
virtual void | _populateArray (std::vector< AccumType > &ary, const DataIterator &dataBegin, uInt64 nr, uInt dataStride) const |
| populate an unsorted array with valid data.
|
|
virtual void | _populateArray (std::vector< AccumType > &ary, const DataIterator &dataBegin, uInt64 nr, uInt dataStride, const DataRanges &ranges, Bool isInclude) const |
| ranges
|
|
virtual void | _populateArray (std::vector< AccumType > &ary, const DataIterator &dataBegin, uInt64 nr, uInt dataStride, const MaskIterator &maskBegin, uInt maskStride) const |
|
virtual void | _populateArray (std::vector< AccumType > &ary, const DataIterator &dataBegin, uInt64 nr, uInt dataStride, const MaskIterator &maskBegin, uInt maskStride, const DataRanges &ranges, Bool isInclude) const |
| mask and ranges
|
|
virtual void | _populateArray (std::vector< AccumType > &ary, const DataIterator &dataBegin, const WeightsIterator &weightsBegin, uInt64 nr, uInt dataStride) const |
| weights
|
|
virtual void | _populateArray (std::vector< AccumType > &ary, const DataIterator &dataBegin, const WeightsIterator &weightsBegin, uInt64 nr, uInt dataStride, const DataRanges &ranges, Bool isInclude) const |
| weights and ranges
|
|
virtual void | _populateArray (std::vector< AccumType > &ary, const DataIterator &dataBegin, const WeightsIterator &weightBegin, uInt64 nr, uInt dataStride, const MaskIterator &maskBegin, uInt maskStride) const |
| weights and mask
|
|
virtual void | _populateArray (std::vector< AccumType > &ary, const DataIterator &dataBegin, const WeightsIterator &weightBegin, uInt64 nr, uInt dataStride, const MaskIterator &maskBegin, uInt maskStride, const DataRanges &ranges, Bool isInclude) const |
| weights, mask, ranges
|
|
virtual void | _populateArrays (std::vector< std::vector< AccumType > > &arys, uInt64 ¤tCount, const DataIterator &dataBegin, uInt64 nr, uInt dataStride, const IncludeLimits &includeLimits, uInt64 maxCount) const |
| Create a std::vector of unsorted arrays, one array for each bin defined by includeLimits .
|
|
virtual void | _populateArrays (std::vector< std::vector< AccumType > > &arys, uInt64 ¤tCount, const DataIterator &dataBegin, uInt64 nr, uInt dataStride, const DataRanges &ranges, Bool isInclude, const IncludeLimits &includeLimits, uInt64 maxCount) const |
| ranges
|
|
virtual void | _populateArrays (std::vector< std::vector< AccumType > > &arys, uInt64 ¤tCount, const DataIterator &dataBegin, uInt64 nr, uInt dataStride, const MaskIterator &maskBegin, uInt maskStride, const IncludeLimits &includeLimits, uInt64 maxCount) const |
|
virtual void | _populateArrays (std::vector< std::vector< AccumType > > &arys, uInt64 ¤tCount, const DataIterator &dataBegin, uInt64 nr, uInt dataStride, const MaskIterator &maskBegin, uInt maskStride, const DataRanges &ranges, Bool isInclude, const IncludeLimits &includeLimits, uInt64 maxCount) const |
| mask and ranges
|
|
virtual void | _populateArrays (std::vector< std::vector< AccumType > > &arys, uInt64 ¤tCount, const DataIterator &dataBegin, const WeightsIterator &weightsBegin, uInt64 nr, uInt dataStride, const IncludeLimits &includeLimits, uInt64 maxCount) const |
| weights
|
|
virtual void | _populateArrays (std::vector< std::vector< AccumType > > &arys, uInt64 ¤tCount, const DataIterator &dataBegin, const WeightsIterator &weightsBegin, uInt64 nr, uInt dataStride, const DataRanges &ranges, Bool isInclude, const IncludeLimits &includeLimits, uInt64 maxCount) const |
| weights and ranges
|
|
virtual void | _populateArrays (std::vector< std::vector< AccumType > > &arys, uInt64 ¤tCount, const DataIterator &dataBegin, const WeightsIterator &weightBegin, uInt64 nr, uInt dataStride, const MaskIterator &maskBegin, uInt maskStride, const IncludeLimits &includeLimits, uInt64 maxCount) const |
| weights and mask
|
|
virtual void | _populateArrays (std::vector< std::vector< AccumType > > &arys, uInt64 ¤tCount, const DataIterator &dataBegin, const WeightsIterator &weightBegin, uInt64 nr, uInt dataStride, const MaskIterator &maskBegin, uInt maskStride, const DataRanges &ranges, Bool isInclude, const IncludeLimits &includeLimits, uInt64 maxCount) const |
| weights, mask, ranges
|
|
virtual Bool | _populateTestArray (std::vector< AccumType > &ary, const DataIterator &dataBegin, uInt64 nr, uInt dataStride, uInt maxElements) const |
| no weights, no mask, no ranges
|
|
virtual Bool | _populateTestArray (std::vector< AccumType > &ary, const DataIterator &dataBegin, uInt64 nr, uInt dataStride, const DataRanges &ranges, Bool isInclude, uInt maxElements) const |
| ranges
|
|
virtual Bool | _populateTestArray (std::vector< AccumType > &ary, const DataIterator &dataBegin, uInt64 nr, uInt dataStride, const MaskIterator &maskBegin, uInt maskStride, uInt maxElements) const |
| mask
|
|
virtual Bool | _populateTestArray (std::vector< AccumType > &ary, const DataIterator &dataBegin, uInt64 nr, uInt dataStride, const MaskIterator &maskBegin, uInt maskStride, const DataRanges &ranges, Bool isInclude, uInt maxElements) const |
| mask and ranges
|
|
virtual Bool | _populateTestArray (std::vector< AccumType > &ary, const DataIterator &dataBegin, const WeightsIterator &weightBegin, uInt64 nr, uInt dataStride, uInt maxElements) const |
| weights
|
|
virtual Bool | _populateTestArray (std::vector< AccumType > &ary, const DataIterator &dataBegin, const WeightsIterator &weightsBegin, uInt64 nr, uInt dataStride, const DataRanges &ranges, Bool isInclude, uInt maxElements) const |
| weights and ranges
|
|
virtual Bool | _populateTestArray (std::vector< AccumType > &ary, const DataIterator &dataBegin, const WeightsIterator &weightBegin, uInt64 nr, uInt dataStride, const MaskIterator &maskBegin, uInt maskStride, uInt maxElements) const |
| weights and mask
|
|
virtual Bool | _populateTestArray (std::vector< AccumType > &ary, const DataIterator &dataBegin, const WeightsIterator &weightBegin, uInt64 nr, uInt dataStride, const MaskIterator &maskBegin, uInt maskStride, const DataRanges &ranges, Bool isInclude, uInt maxElements) const |
| weights, mask, ranges
|
|
Bool | _valuesFromSortedArray (std::map< uInt64, AccumType > &values, uInt64 mynpts, const std::set< uInt64 > &indices, uInt64 maxArraySize, Bool persistSortedArray) |
| get values from sorted array if the array is small enough to be held in memory.
|
|
| StatisticsAlgorithmQuantileComputer (StatisticsDataset< CASA_STATP > *ds) |
| ds should be the dataset object held in the StatisticsAlgorithm object.
|
|
| StatisticsAlgorithmQuantileComputer (const StatisticsAlgorithmQuantileComputer &other) |
| use copy semantics.
|
|
StatisticsAlgorithmQuantileComputer & | operator= (const StatisticsAlgorithmQuantileComputer &other) |
| use copy semantics.
|
|
StatisticsDataset< CASA_STATP > * | _getDataset () |
|
std::shared_ptr< CASA_STATP > | _getMedian () const |
|
std::shared_ptr< CASA_STATP > | _getMedianAbsDevMedian () const |
|
void | _setMedianAbsDevMedian (std::shared_ptr< CASA_STATP > medAbsDevMed) |
|
template<class AccumType, class DataIterator, class MaskIterator = const Bool*, class WeightsIterator = DataIterator>
class casacore::ClassicalQuantileComputer< AccumType, DataIterator, MaskIterator, WeightsIterator >
This class is used internally by ClassicalStatistics objects.
It should never be explicitly instantiated by an API developer. See the documentation of StatisticsAlgorithm for details regarding QuantileComputer classes.
Definition at line 49 of file ClassicalQuantileComputer.h.