View source: R/MainFunctions.R
PolynomialExtrapolation | R Documentation |
PolynomialExtrapolation This function performs Minimal Polynomial extrapolation (MPE) or Reduced Rank Extrapolation (RRE) given a matrix of previous iterates of the function.
PolynomialExtrapolation(Iterates, Method = c("MPE", "RRE"))
Iterates |
A matrix of inputs and outputs excluding jumps. Can be pieced together from Inputs and Outputs matrices of the FixedPoint function using the PutTogetherIteratesWithoutJumps function. |
Method |
The method for polynomial extrapolation. Should be either "MPE" for minimal polynomial extrapolation or "RRE" for reduced rank extrapolation. |
A vector containing the extrapolated vector.
FPFunction = function(x){c(0.5*sqrt(abs(x[1] + x[2])), 1.5*x[1] + 0.5*x[2])} A = FixedPoint( Function = FPFunction, Inputs = c(0.3,900), MaxIter = 6, Method = "Simple") Iterates = PutTogetherIteratesWithoutJumps(A$Inputs, A$Outputs) PolynomialExtrapolation(Iterates, "MPE") B = FixedPoint( function(x){cos(x)}, Inputs = 1, MaxIter = 5, Method = "Simple") Iterates = PutTogetherIteratesWithoutJumps(B$Inputs, B$Outputs) PolynomialExtrapolation(Iterates, "RRE")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.