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

Actual boostrap sampler implementation for common data types. More...

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

Public Member Functions

 BootstrapSampler (const Data &orig_data, size_t block_size=1)
 Constructor for the sampler.
 
virtual ~BootstrapSampler ()
 Destructor.
 
virtual void operator() (size_t num_samp, Data &bootstrapped_sample)
 Generate and store a new boostrapped sample into bootstrapped_sample.
 
- Public Member Functions inherited from BootstrapSamplerBase< Data >
 BootstrapSamplerBase (size_t data_size, Data orig_data)
 Constructor for the bootstrap functor base.
 
virtual ~BootstrapSamplerBase ()
 Destructor.
 
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.
 

Protected Attributes

size_t blockSize
 Size of the block defining a sample.
 
- Protected Attributes inherited from BootstrapSamplerBase< Data >
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)
 

Additional Inherited Members

- Static Public Member Functions inherited from BootstrapSamplerBase< Data >
static void set_seed (size_t seed)
 
- Static Protected Attributes inherited from BootstrapSamplerBase< Data >
static boost::random::mt19937 bootstrapRNG
 Random number generator to use for sampling. More...
 

Detailed Description

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

Actual boostrap sampler implementation for common data types.

Template requires the given type to support an STL-like interface, including a size method and begin and end methods returning random access iterators


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