Blueprint factory for linear functions. More...
#include <polynomial.hpp>
Public Member Functions | |
virtual | ~BluePrintFactory () |
Static Public Member Functions | |
static LinearInterpolation | Interpolation (const double x_i, const double y_i, const double x_f, const double y_f) |
Blueprint for an interpolating a linear function connecting two points. | |
static LinearPointSlopeForm | PointSlopeForm (const double x_f, const double y_f, const double slope) |
Blueprint for an generating a linear function from slope/point form. |
Blueprint factory for linear functions.
Generates various blueprints that instantiate or configure linear functions with commonly used configurations. This class is inherited by the LinearFunction class, consequently it is simpler to access these blueprints via the inheritance mechanisms than to use this class directly. For example,
LinearFunction function = LinearFunction::Interpolation(0.0,0.0,1.0,2.0);
Definition at line 847 of file polynomial.hpp.
virtual ecl::BluePrintFactory< LinearFunction >::~BluePrintFactory | ( | ) | [inline, virtual] |
Definition at line 871 of file polynomial.hpp.
LinearInterpolation ecl::BluePrintFactory< LinearFunction >::Interpolation | ( | const double | x_i, |
const double | y_i, | ||
const double | x_f, | ||
const double | y_f | ||
) | [static] |
Blueprint for an interpolating a linear function connecting two points.
x_i | : initial domain value. |
y_i | : initial polynomial value. |
x_f | : final domain value. |
y_f | : final polynomial value. |
Definition at line 201 of file polynomial_blueprints.cpp.
LinearPointSlopeForm ecl::BluePrintFactory< LinearFunction >::PointSlopeForm | ( | const double | x_f, |
const double | y_f, | ||
const double | slope | ||
) | [static] |
Blueprint for an generating a linear function from slope/point form.
x_f | : final domain value. |
y_f | : final polynomial value. |
slope | : slope of the linear function |
Definition at line 205 of file polynomial_blueprints.cpp.