![]() |
Dakota
Version
Explore and Predict with Confidence
|
A derived sampler to allow for user specification of the accessor methods. More...
Public Member Functions | |
| BootstrapSamplerWithGS (const Data &orig_data, Getter getter_method, Setter setter_method) | |
| Constructor with extra arguments for the accessor methods. | |
| virtual | ~BootstrapSamplerWithGS () |
| Destructor. | |
| virtual void | operator() (size_t num_samp, Data &bootstrapped_sample) |
| Generate and store a new bootstrapped sample into bootstrapped_sample TODO: bounds checking. | |
Public Member Functions inherited from BootstrapSampler< Data > | |
| BootstrapSampler (const Data &orig_data, size_t block_size=1) | |
| Constructor for the sampler. | |
| virtual | ~BootstrapSampler () |
| Destructor. | |
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 | |
| Getter | getterMethod |
| Function to obtain a single sample from a Data object. Function should take a Data object and an unsigned integer corresponding to a sample index and return the sample. | |
| Setter | setterMethod |
| Function to place a single sample into a Data object. Function should take a Data object and an unsigned integer corresponding to the sample index to set. | |
Protected Attributes inherited from BootstrapSampler< Data > | |
| 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... | |
A derived sampler to allow for user specification of the accessor methods.