fastIterate: Accelerate a point iteration

Description Usage Arguments Examples

View source: R/iterate.R

Description

Use the techniques from this package to accelerate a point iteration.

Usage

1
fastIterate(start, f, method, n.prior, pre.iter, num.accel, num.cycles, ...)

Arguments

start

the start value

f

the function to iterate

method

the acceleration function. must take an m x n matrix and return an m-vector.

n.prior

the number of prior iterations to run before accelerating

pre.iter

how many iterations to do before acceleration (per cycle)

num.accel

how many iterations to accelerate

num.cycles

how many cycles to do?

...

additional arguments for f

Examples

1
2
fastIterate(c(0.2, 0.6), function(x) {c(1 - sin(x[[1]]), cos(x[[2]]))},
            rre, 1, 3, 5, 10)

pdmetcalfe/extrapolatr documentation built on June 12, 2021, 8:09 p.m.