You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/functions-reference/higher-order_functions.Rmd
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -330,11 +330,15 @@ integrator separates parameter values, `theta`, from data values, `x_r`.
330
330
### Call to the 1D Integrator
331
331
332
332
<!-- vector; integrate_1d; (function integrand, real a, real b, real[] theta, real[] x_r, int[] x_i); -->
333
+
\index{{\tt \bfseries integrate\_1d }!{\tt (function integrand, real a, real b, real[] theta, real[] x\_r, int[] x\_i): vector}|hyperpage}
334
+
335
+
`vector`**`integrate_1d`**`(function integrand, real a, real b, real[] theta, real[] x_r, int[] x_i)`<br>\newline
336
+
Integrates the integrand from a to b.
333
337
334
338
<!-- vector; integrate_1d; (function integrand, real a, real b, real[] theta, real[] x_r, int[] x_i), real relative_tolerance); -->
335
339
\index{{\tt \bfseries integrate\_1d }!{\tt (function integrand, real a, real b, real[] theta, real[] x\_r, int[] x\_i, real relative\_tolerance): vector}|hyperpage}
336
340
337
-
`vector`**`integrate\_1d`**`(function integrand, real a, real b, real[] theta, real[] x_r, int[] x_i, real relative_tolerance)`<br>\newline
341
+
`vector`**`integrate_1d`**`(function integrand, real a, real b, real[] theta, real[] x_r, int[] x_i, real relative_tolerance)`<br>\newline
338
342
Integrates the integrand from a to b with the given relative tolerance.
339
343
340
344
@@ -355,8 +359,10 @@ The arguments represent
355
359
**`theta`*: parameters only, type `real[]`,
356
360
**`x_r`*: real data only, type `real[]`,
357
361
**`x_i`*: integer data only, type `int[]`.
358
-
**`relative_tolerance`*: relative tolerance for the 1d integrator (recommended default of 1e-8), type `real`, data only.
359
362
363
+
A `relative_tolerance` argument can optionally be provided for more control over the algorithm:
364
+
365
+
**`relative_tolerance`*: relative tolerance for the 1d integrator, type `real`, data only.
0 commit comments