21 #ifndef otbSamplingRateCalculatorList_h
22 #define otbSamplingRateCalculatorList_h
26 #include "OTBSamplingExport.h"
This class is a generic all-purpose wrapping around an std::vector<itk::SmartPointer<ObjectType> >.
This class is a list of sampling rate calculators.
void SetAllSamples(PartitionType t)
ObjectList< SamplingRateCalculator > Superclass
SamplingRateCalculatorList Self
void UpdateGlobalCounts()
void SetPercentageOfSamples(std::vector< double > &p, PartitionType t)
void SetNbOfSamplesAllClasses(std::vector< unsigned long > &nb, PartitionType t)
void SetNthClassCount(unsigned int index, const ClassCountMapType &map)
~SamplingRateCalculatorList() override
void SetMinimumNbOfSamplesByClass(PartitionType t)
void operator=(const Self &)=delete
SamplingRateCalculator::ClassCountMapType ClassCountMapType
itk::SmartPointer< Self > Pointer
SamplingRateCalculator::MapRateType MapRateType
SamplingRateCalculatorList(const Self &)=delete
void SetTotalNumberOfSamples(std::vector< unsigned long > &tot, PartitionType t)
ClassCountMapType m_GlobalCountMap
void SetNbOfSamplesByClass(const std::vector< ClassCountMapType > &required, PartitionType t)
itk::SmartPointer< const Self > ConstPointer
SamplingRateCalculatorList()
const MapRateType & GetRatesByClass(unsigned int index)
std::map< std::string, unsigned long > ClassCountMapType
std::map< std::string, TripletType > MapRateType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.