![]() |
OTB
9.1.1
Orfeo Toolbox
|
#include <otbRandomSampler.h>
Inheritance diagram for otb::RandomSampler:
Collaboration diagram for otb::RandomSampler:Classes | |
| struct | Parameter |
Public Types | |
| typedef itk::SmartPointer< const Self > | ConstPointer |
| typedef struct otb::RandomSampler::Parameter | ParameterType |
| typedef itk::SmartPointer< Self > | Pointer |
| typedef RandomSampler | Self |
| typedef SamplerBase | Superclass |
Public Types inherited from otb::SamplerBase | |
| typedef itk::SmartPointer< const Self > | ConstPointer |
| typedef itk::SmartPointer< Self > | Pointer |
| typedef SamplerBase | Self |
| typedef itk::Object | Superclass |
Public Member Functions | |
| virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
| virtual const char * | GetNameOfClass () const |
Public Member Functions inherited from otb::SamplerBase | |
| virtual unsigned long | GetChosenElements () |
| virtual unsigned long | GetNeededElements () |
| virtual unsigned long | GetProcessedElements () |
| virtual double | GetRate () |
| virtual unsigned long | GetTotalElements () |
| void | SetNumberOfElements (unsigned long needed, unsigned long total) |
| void | SetRate (double rate, unsigned long total=0UL) |
Static Public Member Functions | |
| static Pointer | New () |
| ParameterType | m_Parameters |
| std::vector< unsigned long > | m_Positions |
| std::vector< unsigned long >::iterator | m_CurrentPosition |
| void | SetParameters (const ParameterType ¶m) |
| ParameterType | GetParameters () |
| void | Reset (void) override |
| bool | TakeSample (void) |
| RandomSampler () | |
| ~RandomSampler () override | |
| RandomSampler (const Self &) | |
| void | operator= (const Self &) |
Additional Inherited Members | |
Protected Member Functions inherited from otb::SamplerBase | |
| SamplerBase () | |
| ~SamplerBase () override | |
Protected Attributes inherited from otb::SamplerBase | |
| unsigned long | m_ChosenElements |
| unsigned long | m_ProcessedElements |
Random sampler for iteration loops.
This class allows doing random sampling during an iteration loop. It uses the MersenneTwisterRandomGenerator.
Definition at line 39 of file otbRandomSampler.h.
| typedef itk::SmartPointer<const Self> otb::RandomSampler::ConstPointer |
Definition at line 45 of file otbRandomSampler.h.
| typedef struct otb::RandomSampler::Parameter otb::RandomSampler::ParameterType |
Internal parameters, only contains an offset to shift the periodic sampling
| typedef itk::SmartPointer<Self> otb::RandomSampler::Pointer |
Definition at line 44 of file otbRandomSampler.h.
Definition at line 42 of file otbRandomSampler.h.
Definition at line 43 of file otbRandomSampler.h.
|
protected |
Constructor
|
inlineoverrideprotected |
Destructor
Definition at line 98 of file otbRandomSampler.h.
|
private |
Internal parameters for the sampler
| virtual::itk::LightObject::Pointer otb::RandomSampler::CreateAnother | ( | void | ) | const |
|
virtual |
Runtime information support.
Reimplemented from otb::SamplerBase.
|
inline |
Getter for internal parameters
Definition at line 77 of file otbRandomSampler.h.
|
static |
Method for creation through the object factory.
|
private |
Internal parameters for the sampler
|
overridevirtual |
Reset internal counter (to be called before starting iteration)
Reimplemented from otb::SamplerBase.
|
inline |
Setter for internal parameters
Definition at line 66 of file otbRandomSampler.h.
| bool otb::RandomSampler::TakeSample | ( | void | ) |
Method to call during iteration, returns true if the sample is selected, and false otherwise.
|
private |
Internal current position
Definition at line 114 of file otbRandomSampler.h.
|
private |
Internal parameters for the sampler
Definition at line 108 of file otbRandomSampler.h.
|
private |
Internal list of positions to select
Definition at line 111 of file otbRandomSampler.h.
1.8.17