casa
5.7.0-16
|
This is the virtual base class from which concrete QuantileComputer classes are derived. More...
#include <StatisticsAlgorithmQuantileComputer.h>
Public Member Functions | |
StatisticsAlgorithmQuantileComputer ()=delete | |
virtual | ~StatisticsAlgorithmQuantileComputer () |
virtual StatisticsAlgorithmQuantileComputer < CASA_STATP > * | clone () const =0 |
clone this object by returning a pointer to a copy More... | |
void | deleteSortedArray () |
delete any (partially) sorted array More... | |
virtual void | reset () |
reset this object by clearing data. More... | |
void | setDataset (StatisticsDataset< CASA_STATP > *ds) |
This must be called upon the copy or assignment of the associated statistics algorithm object. More... | |
std::vector< AccumType > & | _getSortedArray () |
FIXME make protected once refactor is complete. More... | |
void | _setSortedArray (const std::vector< AccumType > &v) |
FIXME make protected once refactor is complete. More... | |
void | setMedian (CountedPtr< AccumType > median) |
Protected Member Functions | |
StatisticsAlgorithmQuantileComputer (StatisticsDataset< CASA_STATP > *ds) | |
ds should be the dataset object held in the StatisticsAlgorithm object. More... | |
StatisticsAlgorithmQuantileComputer (const StatisticsAlgorithmQuantileComputer &other) | |
use copy semantics. More... | |
StatisticsAlgorithmQuantileComputer & | operator= (const StatisticsAlgorithmQuantileComputer &other) |
use copy semantics. More... | |
StatisticsDataset< CASA_STATP > * | _getDataset () |
CountedPtr< AccumType > | _getMedian () const |
CountedPtr< AccumType > | _getMedianAbsDevMedian () const |
void | _setMedianAbsDevMedian (CountedPtr< AccumType > medAbsDevMed) |
Private Attributes | |
std::vector< AccumType > | _sortedArray |
StatisticsDataset< CASA_STATP > * | _dataset |
This pointer references the (non-pointer) object in the associated non-QuantileComputer computer object, so this should not be wrapped in a smart pointer. More... | |
CountedPtr< AccumType > | _median |
CountedPtr< AccumType > | _medAbsDevMed |
This is the virtual base class from which concrete QuantileComputer classes are derived.
The API developer should never explicitly instantiate a QuantileComputer class; they are used internally by other StatsFramework classes. See the documentation of StatisticsAlgorithm for more details.
Definition at line 44 of file StatisticsAlgorithmQuantileComputer.h.
|
delete |
|
virtual |
|
protected |
ds should be the dataset object held in the StatisticsAlgorithm object.
The QuantileComputer calculator object should never hold its own version of a dataset object. The algorithm object (caller of this method) is always responsible for deleting the passed object, usually upon its destruction.
|
protected |
use copy semantics.
statistics algorithm object's responsibility to set the _dataset object in the new QuantileComputer calculator object upon a copy. The underlying _dataset object in the new stats calculator object should be a reference to the new _dataset object in the copied statistics algorithm object.
|
inlineprotected |
Definition at line 102 of file StatisticsAlgorithmQuantileComputer.h.
|
inlineprotected |
Definition at line 104 of file StatisticsAlgorithmQuantileComputer.h.
|
inlineprotected |
Definition at line 106 of file StatisticsAlgorithmQuantileComputer.h.
|
inline |
FIXME make protected once refactor is complete.
Definition at line 67 of file StatisticsAlgorithmQuantileComputer.h.
|
inlineprotected |
Definition at line 110 of file StatisticsAlgorithmQuantileComputer.h.
|
inline |
FIXME make protected once refactor is complete.
Definition at line 70 of file StatisticsAlgorithmQuantileComputer.h.
|
pure virtual |
clone this object by returning a pointer to a copy
Implemented in casacore::ClassicalQuantileComputer< AccumType, DataIterator, MaskIterator, WeightsIterator >, casacore::ClassicalQuantileComputer< CASA_STATP >, casacore::ConstrainedRangeQuantileComputer< AccumType, DataIterator, MaskIterator, WeightsIterator >, casacore::ConstrainedRangeQuantileComputer< CASA_STATP >, and casacore::HingesFencesQuantileComputer< AccumType, DataIterator, MaskIterator, WeightsIterator >.
void casacore::StatisticsAlgorithmQuantileComputer< AccumType, DataIterator, MaskIterator, WeightsIterator >::deleteSortedArray | ( | ) |
delete any (partially) sorted array
|
protected |
use copy semantics.
The _dataset object is not copied. It is the associated statistics algorithm object's responsibility to set the _dataset object in the new QuantileComputer calculator object upon an assignment. The underlying _dataset object in the new stats calculator object should be a reference to that in the newly assigned statistics algorithm object.
|
virtual |
reset this object by clearing data.
Reimplemented in casacore::ClassicalQuantileComputer< AccumType, DataIterator, MaskIterator, WeightsIterator >, casacore::ClassicalQuantileComputer< CASA_STATP >, and casacore::HingesFencesQuantileComputer< AccumType, DataIterator, MaskIterator, WeightsIterator >.
void casacore::StatisticsAlgorithmQuantileComputer< AccumType, DataIterator, MaskIterator, WeightsIterator >::setDataset | ( | StatisticsDataset< CASA_STATP > * | ds | ) |
This must be called upon the copy or assignment of the associated statistics algorithm object.
Otherwise, there is generally no reason to call it.
|
inline |
Definition at line 72 of file StatisticsAlgorithmQuantileComputer.h.
|
private |
This pointer references the (non-pointer) object in the associated non-QuantileComputer computer object, so this should not be wrapped in a smart pointer.
Definition at line 119 of file StatisticsAlgorithmQuantileComputer.h.
Referenced by casacore::StatisticsAlgorithmQuantileComputer< CASA_STATP >::_getDataset().
|
private |
|
private |
Definition at line 120 of file StatisticsAlgorithmQuantileComputer.h.
Referenced by casacore::StatisticsAlgorithmQuantileComputer< CASA_STATP >::_getMedian(), and casacore::StatisticsAlgorithmQuantileComputer< CASA_STATP >::setMedian().
|
private |
Definition at line 115 of file StatisticsAlgorithmQuantileComputer.h.
Referenced by casacore::StatisticsAlgorithmQuantileComputer< CASA_STATP >::_getSortedArray(), and casacore::StatisticsAlgorithmQuantileComputer< CASA_STATP >::_setSortedArray().