VERB4D
Classes | Namespaces
MonotCubicInterpolator.hpp File Reference

Represents one dimensional function f with single valued argument x that can be interpolated using monotone cubic interpolation. More...

#include <vector>
#include <map>
#include <string>

Go to the source code of this file.

Classes

class  Opm::MonotCubicInterpolator
 Represents one dimensional function f with single valued argument x that can be interpolated using monotone cubic interpolation. More...
 

Namespaces

 Opm
 Namespace included for using the monotone cubic interpolator.
 

Detailed Description

Represents one dimensional function f with single valued argument x that can be interpolated using monotone cubic interpolation.

Class to represent a one-dimensional function f with single-valued argument x. The function is represented by a table of function values. Interpolation between table values is cubic and monotonicity preserving if input values are monotonous.

Outside $ x_{min} $ and $ x_{max} $, the class will extrapolate using the constant $f(x_{min})$ or $f(x_{max})$.

Extra functionality:

Monotonicity preserving cubic interpolation algorithm is taken from Fritsch and Carlson, "Monotone piecewise cubic interpolation", SIAM J. Numer. Anal. 17, 238–246, no. 2,

Algorithm also described here: http://en.wikipedia.org/wiki/Monotone_cubic_interpolation

Author
HÃ¥vard Berland <havb (at) statoil.com>, December 2006