base_integrator module¶
Implementation of basic integrator functions
- class BaseIntegrator(*args, **kwargs)[source]¶
Bases:
zunis.integration.integratorAPI.SurveyRefineIntegratorAPI
Base abstract class that implements common functionality
- Parameters
f (function) – the function to integrate
n_iter (int) – general number of iterations - ignored for survey/refine if n_iter_survey/n_inter_refine is set
n_iter_survey (int) – number of iterations for the survey stage
n_iter_refine (int) – number of iterations for the refine stage
n_points – general number of points per iteration - ignored for survey/refine if n_points_survey/n_points_refine is set
n_points_survey (int) – number of points per iteration for the survey stage
n_points_refine (int) – number of points per iteration for the refine stage
use_survey (bool) – whether to use the points generated during the survey to compute the final integral not recommended due to uncontrolled correlations in error estimates
verbosity (int) – verbosity level of the integrator
- finalize_integration(use_survey=None, **kwargs)[source]¶
Perform the final operations of the whole integration
- process_refine_step(sample, integral, integral_var, **kwargs)[source]¶
Process the result of a refine step
- process_survey_step(sample, integral, integral_var, training_record, **kwargs)[source]¶
Process the result of a survey step