Skip to contents

A class for numerical integration

Usage

# S4 method for Integrator
initialize(
  .Object,
  max_subdivisions = 100,
  relative_accuracy = .Machine$double.eps^0.25,
  absolute_accuracy = relative_accuracy,
  work_size = 4 * max_subdivisions
)

# S4 method for Integrator
$(x, name)

# S4 method for Integrator
$(x, name) <- value

Functions

  • initialize(Integrator): Construct an object of class Integrator.

  • $: Either access configuration parameters max_subdivisions, relative_accuracy, absolute_accuracy, or work_size or get the integration routine with signature function(f, lower, upper, ..., stop_on_error = TRUE).

  • `$`(Integrator) <- value: Set any of the configuration parameters max_subdivisions, relative_accuracy, absolute_accuracy, or work_size.

Slots

pointer

An external pointer to a C++ object.

See also

Other test-helper: catch_what(), integrate