Opm::NonuniformTableLinear< T > Class Template Reference This class uses linear interpolation to compute the value (and its derivative) of a function f sampled at possibly nonuniform points. If values outside the domain are sought, values will be extrapolated linearly. More...
Inheritance diagram for Opm::NonuniformTableLinear< T >:
Detailed Descriptiontemplate<typename T>
|
T | the range type of the function (should be an algebraic ring type) |
|
inline |
Default constructor.
|
inline |
Construct from vectors of x and y values.
x_values | vector of domain values |
y_values | vector of corresponding range values. |
References Opm::isNondecreasing().
|
inline |
Evaluate the derivative at x.
x | a domain value |
References Opm::linearInterpolationDerivative().
|
inline |
Get the domain.
|
inline |
Evaluate the inverse at y. Requires T to be a double.
y | a range value |
References Opm::isNondecreasing(), and Opm::linearInterpolation().
|
inline |
Evaluate the value at x.
x | a domain value |
References Opm::linearInterpolation().
|
inline |
Equality operator.
other | another NonuniformTableLinear. |
References Opm::NonuniformTableLinear< T >::x_values_, and Opm::NonuniformTableLinear< T >::y_values_.
|
inline |
Rescale the domain.
new_domain | the new domain as a pair of doubles. |
|
protected |
Referenced by Opm::NonuniformTableLinear< T >::operator==().
|
mutableprotected |
|
protected |
Referenced by Opm::NonuniformTableLinear< T >::operator==().
|
mutableprotected |