generateSamples

fun generateSamples(numBootstrapSamples: Map<String, Int>, saveBootstrapSamples: Boolean = false)

This method changes the underlying state of the Bootstrap instance by performing the bootstrap sampling.

Parameters

numBootstrapSamples

the number of bootstrap samples to generate for each of the bootstraps, the keys must match the keys in the original data map. If the names do not match then the bootstraps are not generated.

saveBootstrapSamples

indicates that the statistics and data of each bootstrap generate should be saved


fun generateSamples(numBootstrapSamples: Int, saveBootstrapSamples: Boolean = false)

This method changes the underlying state of the Bootstrap instance by performing the bootstrap sampling.

Parameters

numBootstrapSamples

the number of bootstrap samples to generate, assumes all are the same.

estimator

a function of the data

saveBootstrapSamples

indicates that the statistics and data of each bootstrap generate should be saved