This class uses linear interpolation to compute the value (and its derivative) of a function f sampled at possibly nonuniform points.
More...
|
|
| NonuniformTableLinear () |
| | Default constructor.
|
| |
| template<class XContainer , class YContainer > |
| | NonuniformTableLinear (const XContainer &x_values, const YContainer &y_values) |
| | Construct from vectors of x and y values.
|
| |
| std::pair< double, double > | domain () |
| | Get the domain.
|
| |
| void | rescaleDomain (std::pair< double, double > new_domain) |
| | Rescale the domain.
|
| |
| double | operator() (const double x) const |
| | Evaluate the value at x.
|
| |
| double | derivative (const double x) const |
| | Evaluate the derivative at x.
|
| |
| double | inverse (const double y) const |
| | Evaluate the inverse at y.
|
| |
| bool | operator== (const NonuniformTableLinear &other) const |
| | Equality operator.
|
| |
template<typename T>
class Opm::NonuniformTableLinear< T >
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.
- Template Parameters
-
| T | the range type of the function (should be an algebraic ring type) |