26 #ifndef SCIMATH_STATSALGORITHMFACTORY_H 27 #define SCIMATH_STATSALGORITHMFACTORY_H 29 #include <casacore/casa/Utilities/CountedPtr.h> 30 #include <casacore/scimath/Mathematics/FitToHalfStatisticsData.h> 31 #include <casacore/scimath/Mathematics/NumericTraits.h> 32 #include <casacore/scimath/Mathematics/StatisticsAlgorithm.h> 33 #include <casacore/scimath/Mathematics/StatisticsData.h> 39 template <
class AccumType,
class DataIterator,
class MaskIterator=const Bool *,
class WeightsIterator=DataIterator>
114 #ifndef CASACORE_NO_AUTO_TEMPLATES 115 #include <casacore/scimath/Mathematics/StatisticsAlgorithmFactory.tcc> Record toRecord() const
create a record from the current configuration that can be used to create another object using the fr...
Double _hf
hinges-fences f factor
void configureChauvenet(Double zscore=-1, Int maxIterations=-1)
configure to use Chauvenet's criterion
void configureHingesFences(Double f)
configure to use hinges-fences algorithm
USE_DATA
which section of data to use, greater than or less than the center value
StatisticsData::ALGORITHM _algorithm
ALGORITHM
implemented algorithms
CountedPtr< StatisticsAlgorithm< CASA_STATP > > createStatsAlgorithm() const
Create a pointer to an object of a class derived from StatisticsAlgorithm that reflects the current c...
CENTER
choice of center point based on the corresponding statistics from the entire distribution of data...
StatisticsData::ALGORITHM algorithm() const
Referenced counted pointer for constant data.
static StatisticsAlgorithmFactory< CASA_STATP > fromRecord(const Record &r)
create an object from a record
FitToHalfData _fitToHalfData
void configureClassical()
void configureFitToHalf(FitToHalfStatisticsData::CENTER centerType=FitToHalfStatisticsData::CMEAN, FitToHalfStatisticsData::USE_DATA useData=FitToHalfStatisticsData::LE_CENTER, AccumType centerValue=0)
configure to use fit to half algorithm.
A hierarchical collection of named fields of various types.
Double hingesFencesFactor() const
Throws an exception if the current configuration is not relevant to the hinges-fences algorithm...
Allows a common way for configuring and creating stats algorithm objects.
~StatisticsAlgorithmFactory()
StatisticsAlgorithmFactory()
upon construction, the object is configured to use the classical stats algorithm
AccumType centerValue
fit to half center value (only relevent if center=CVALUE)
FitToHalfData fitToHalfData() const
Throws an exception if the current configuration is not relevant to the fit-to-half algorithm...
FitToHalfStatisticsData::CENTER center
this file contains all the compiler specific defines
FitToHalfStatisticsData::USE_DATA side
fit to half data portion to use
ChauvenetData chauvenetData() const
Throws an exception if the current configuration is not relevant to the Chauvenet/zscore algorithm...