Dakota  Version 6.15
Explore and Predict with Confidence
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
BootstrapSamplerBase< Data > Class Template Referenceabstract

Base class/interface for the bootstrap sampler. More...

Inheritance diagram for BootstrapSamplerBase< Data >:
BootstrapSampler< Data > BootstrapSamplerWithGS< Data, Getter, Setter >

Public Member Functions

 BootstrapSamplerBase (size_t data_size, Data orig_data)
 Constructor for the bootstrap functor base.
 
virtual ~BootstrapSamplerBase ()
 Destructor.
 
virtual void operator() (size_t num_samp, Data &bootstrapped_sample)=0
 Generate and store a new boostrapped sample into bootstrapped_sample.
 
virtual size_t getDataSize ()
 Obatin the number of samples used in the empirical distribution.
 
virtual void operator() (Data &bootstrapped_sample)
 Generate and store an dataSize out of dataSize boostrap sample.
 
virtual Data operator() ()
 Return boostrapped sample.
 

Static Public Member Functions

static void set_seed (size_t seed)
 

Protected Attributes

boost::random::uniform_int_distribution sampler
 Uniform distribution to provide samples from the empirical distribution.
 
const size_t dataSize
 Size of the dataset defining the empirical distribution.
 
Data origData
 Original data defining the empirical distribution TODO: Consider if it should be const (breaks Teuchos)
 

Static Protected Attributes

static boost::random::mt19937 bootstrapRNG
 Random number generator to use for sampling. More...
 

Detailed Description

template<typename Data>
class Dakota::BootstrapSamplerBase< Data >

Base class/interface for the bootstrap sampler.

BootstrapSamplerBase defines the minimum interface for a bootstrap sampler and handles initialization of the random variate generation used by the bootstrap. Functor is templated on the data type, but does not actually define a data member.

Member Data Documentation

boost::random::mt19937 bootstrapRNG
staticprotected

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