Alexandria 2.31.2
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
Euclid::SOM::SamplingPolicy::Bootstrap< IterType > Class Template Referencefinal

#include <SamplingPolicy.h>

Inheritance diagram for Euclid::SOM::SamplingPolicy::Bootstrap< IterType >:
Collaboration diagram for Euclid::SOM::SamplingPolicy::Bootstrap< IterType >:

Public Member Functions

 Bootstrap (IterType begin, IterType end)
 
IterType start (IterType begin, IterType end) const override
 
IterType next (IterType) const override
 

Private Attributes

IterType m_end
 
std::mt19937 m_gen {std::random_device{}()}
 
std::uniform_int_distribution m_dist
 

Detailed Description

template<typename IterType>
class Euclid::SOM::SamplingPolicy::Bootstrap< IterType >

Definition at line 59 of file SamplingPolicy.h.

Constructor & Destructor Documentation

◆ Bootstrap()

template<typename IterType>
Euclid::SOM::SamplingPolicy::Bootstrap< IterType >::Bootstrap ( IterType begin,
IterType end )
inline

Definition at line 62 of file SamplingPolicy.h.

References m_dist, and m_end.

Member Function Documentation

◆ next()

template<typename IterType>
IterType Euclid::SOM::SamplingPolicy::Bootstrap< IterType >::next ( IterType ) const
inlineoverridevirtual

Implements Euclid::SOM::SamplingPolicy::Interface< IterType >.

Definition at line 71 of file SamplingPolicy.h.

References m_end.

◆ start()

template<typename IterType>
IterType Euclid::SOM::SamplingPolicy::Bootstrap< IterType >::start ( IterType begin,
IterType end ) const
inlineoverridevirtual

Implements Euclid::SOM::SamplingPolicy::Interface< IterType >.

Definition at line 64 of file SamplingPolicy.h.

References std::advance(), m_dist, and m_gen.

Here is the call graph for this function:

Member Data Documentation

◆ m_dist

template<typename IterType>
std::uniform_int_distribution Euclid::SOM::SamplingPolicy::Bootstrap< IterType >::m_dist
mutableprivate

Definition at line 78 of file SamplingPolicy.h.

Referenced by Bootstrap(), and start().

◆ m_end

template<typename IterType>
IterType Euclid::SOM::SamplingPolicy::Bootstrap< IterType >::m_end
private

Definition at line 76 of file SamplingPolicy.h.

Referenced by Bootstrap(), and next().

◆ m_gen

template<typename IterType>
std::mt19937 Euclid::SOM::SamplingPolicy::Bootstrap< IterType >::m_gen {std::random_device{}()}
mutableprivate

Definition at line 77 of file SamplingPolicy.h.

Referenced by start().


The documentation for this class was generated from the following file: