nr
Interface Extrapolator

All Known Implementing Classes:
PolynomialExtrapolator

public interface Extrapolator

implements an extrapolation calculation routine for a vector function. Based on routines pzextr and rzextr from Numerical Recipes section 16.4. Takes a series of doubles, x and corresponding Vec values, y, and extrapolates down to a target x.

Author:
Daniel Wachsstock

Method Summary
 void add(double x, Vec y, Vec dy)
          add a new data set to the extrapolation
 double getTarget()
          the target x value
 void reset()
          reset the extrapolation (discard all previous points)
 void setTarget(double x)
          change the target
 

Method Detail

add

void add(double x,
         Vec y,
         Vec dy)
add a new data set to the extrapolation

Parameters:
x - the input x value
y - the input y value. On return, is updated to the value of y extrapolated to x == target X.
dy - on output, updated to the error estimate in each element of y. If dy == null, then is ignored.

setTarget

void setTarget(double x)
change the target

Parameters:
x - the new target x

getTarget

double getTarget()
the target x value

Returns:
the target

reset

void reset()
reset the extrapolation (discard all previous points)