26 #ifndef SCIMATH_STATSALGORITHMFACTORY_H 27 #define SCIMATH_STATSALGORITHMFACTORY_H 29 #include <casacore/casa/Utilities/CountedPtr.h> 30 #include <casacore/scimath/Mathematics/NumericTraits.h> 31 #include <casacore/scimath/StatsFramework/StatisticsAlgorithm.h> 32 #include <casacore/scimath/StatsFramework/StatisticsAlgorithmFactoryData.h> 33 #include <casacore/scimath/StatsFramework/StatisticsData.h> 40 class AccumType,
class DataIterator,
class MaskIterator=
const Bool *,
41 class WeightsIterator=DataIterator
49 class AccumType2,
class DataIterator2,
class MaskIterator2,
50 class WeightsIterator2
81 template <
class DataIterator2,
class MaskIterator2,
class WeightsIterator2>
84 AccumType, DataIterator2, MaskIterator2, WeightsIterator2
131 #ifndef CASACORE_NO_AUTO_TEMPLATES 132 #include <casacore/scimath/StatsFramework/StatisticsAlgorithmFactory.tcc> Record toRecord() const
create a record from the current configuration that can be used to create another object using the fr...
StatisticsAlgorithmFactoryData::FitToHalfData< AccumType > _fitToHalfData
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
StatisticsAlgorithmFactoryData::ChauvenetData chauvenetData() const
Throws an exception if the current configuration is not relevant to the Chauvenet/zscore algorithm...
StatisticsAlgorithmFactoryData::BiweightData _biweightData
StatisticsAlgorithmFactoryData::FitToHalfData< AccumType > fitToHalfData() const
Throws an exception if the current configuration is not relevant to the fit-to-half 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
StatisticsAlgorithmFactoryData::ChauvenetData _chauvData
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.
bool Bool
Define the standard types used by Casacore.
Double hingesFencesFactor() const
Throws an exception if the current configuration is not relevant to the hinges-fences algorithm...
Provides a single interface for creation of stats algorithm objects.
StatisticsAlgorithmFactoryData::BiweightData biweightData() const
Throws an exception if the current configuration is not relevant to the Biweight algorithm.
~StatisticsAlgorithmFactory()
StatisticsAlgorithmFactory()
upon construction, the object is configured to use the classical stats algorithm
const Double c
Fundamental physical constants (SI units):
void copy(StatisticsAlgorithmFactory< AccumType, DataIterator2, MaskIterator2, WeightsIterator2 > &other) const
copy the data from this object to an object with different template types.
void configureBiweight(Int maxIter=3, Double c=6.0)
this file contains all the compiler specific defines