21 #ifndef otbPatternSampler_h
22 #define otbPatternSampler_h
25 #include "OTBStatisticsExport.h"
55 unsigned long MaxPatternSize = 0;
65 unsigned int Seed = 0;
79 if (m_Parameters != param)
131 std::vector<bool>
RandArray(
unsigned long N,
unsigned long T);
Periodic sampler for iteration loops.
std::vector< bool > RandArray(unsigned long N, unsigned long T)
unsigned long FindBestSize(unsigned long tot)
void operator=(const Self &)
itk::SmartPointer< const Self > ConstPointer
itk::SmartPointer< Self > Pointer
void SetParameters(const ParameterType ¶m)
ParameterType m_Parameters
static void ExportPatterns(const ParameterType ¶m, std::string &data)
static void ImportPatterns(const std::string &data, ParameterType ¶m)
~PatternSampler() override
ParameterType GetParameters()
PatternSampler(const Self &)
void Reset(void) override
static unsigned int ParseSymbol(const char &s)
This is a base class for sampling methods.
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
bool operator!=(const struct Parameter ¶m) const
std::vector< bool > Pattern2
std::vector< bool > Pattern1