26#ifndef SCIMATH_STATSALGORITHMQUANTILECOMPUTER_H
27#define SCIMATH_STATSALGORITHMQUANTILECOMPUTER_H
29#include <casacore/scimath/StatsFramework/StatisticsTypes.h>
31#include <casacore/casa/aips.h>
41 class AccumType,
class DataIterator,
class MaskIterator=
const Bool *,
42 class WeightsIterator=DataIterator
126#ifndef CASACORE_NO_AUTO_TEMPLATES
127#include <casacore/scimath/StatsFramework/StatisticsAlgorithmQuantileComputer.tcc>
This is the virtual base class from which concrete QuantileComputer classes are derived.
StatisticsAlgorithmQuantileComputer()=delete
void _setSortedArray(const std::vector< AccumType > &v)
FIXME make protected once refactor is complete.
std::shared_ptr< AccumType > _median
virtual StatisticsAlgorithmQuantileComputer< CASA_STATP > * clone() const =0
clone this object by returning a pointer to a copy
StatisticsAlgorithmQuantileComputer(StatisticsDataset< CASA_STATP > *ds)
ds should be the dataset object held in the StatisticsAlgorithm object.
StatisticsAlgorithmQuantileComputer & operator=(const StatisticsAlgorithmQuantileComputer &other)
use copy semantics.
void setDataset(StatisticsDataset< CASA_STATP > *ds)
This must be called upon the copy or assignment of the associated statistics algorithm object.
void setMedian(std::shared_ptr< AccumType > median)
virtual void reset()
reset this object by clearing data.
std::shared_ptr< AccumType > _medAbsDevMed
std::vector< AccumType > _sortedArray
StatisticsDataset< CASA_STATP > * _dataset
This pointer references the (non-pointer) object in the associated non-QuantileComputer computer obje...
std::vector< AccumType > & _getSortedArray()
FIXME make protected once refactor is complete.
StatisticsDataset< CASA_STATP > * _getDataset()
std::shared_ptr< AccumType > _getMedian() const
std::shared_ptr< AccumType > _getMedianAbsDevMedian() const
void deleteSortedArray()
delete any (partially) sorted array
void _setMedianAbsDevMedian(std::shared_ptr< AccumType > medAbsDevMed)
virtual ~StatisticsAlgorithmQuantileComputer()
StatisticsAlgorithmQuantileComputer(const StatisticsAlgorithmQuantileComputer &other)
use copy semantics.
Representation of a statistics dataset used in statistics framework calculatations.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.
LatticeExprNode median(const LatticeExprNode &expr)