View source: R/14.2.4-strategy-bootstrap.R
| bootstrap_single_iteration | R Documentation |
Internal helper: resamples weights, finds the p_value that achieves the
resampled mean weight via optim_search_p_value, then extracts
consumption and (optionally) the predicted final weight.
Extracted to eliminate code duplication between the sequential and parallel
execution paths of bootstrap_p_values.
bootstrap_single_iteration(
final_weights,
n_sample,
simulation_function,
processed_simulation_data,
oxycal,
store_predicted_weights,
upper_p = 1
)
final_weights |
Observed final weights vector |
n_sample |
Sample size for bootstrap resampling |
simulation_function |
Closure accepting a p_value and returning the
predicted final weight; used by |
processed_simulation_data |
Processed simulation data list |
oxycal |
Oxycalorific coefficient (J/g O2) |
store_predicted_weights |
Logical; retrieve the predicted final weight? |
upper_p |
Upper bound for p_value search, default 5.0 |
Named list with fields p_estimate, consumption_estimate,
predicted_weight, mean_fin, and success (logical).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.