![]() |
Dakota
Version 6.21
Explore and Predict with Confidence
|
Actual boostrap sampler implementation for common data types. More...
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 bootstrapped 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 bootstrap sample. | |
| virtual Data | operator() () |
| Return bootstrapped 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... | |
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