Blueprint for generating a linear function from slope and point pair. More...
#include <polynomial.hpp>
Public Types | |
typedef ecl::LinearFunction | base_type |
Abstract representation of the class to be instantiated/configured. | |
Public Member Functions | |
void | apply (ecl::LinearFunction &function) const |
Apply the blueprint to configure an existing object. | |
ecl::LinearFunction | instantiate () |
Instantiate a copy of the object that is blueprinted. | |
LinearPointSlopeForm (const double x_f, const double y_f, const double s) | |
Constructor that properly configures/initialises the blueprint. | |
virtual | ~LinearPointSlopeForm () |
Private Attributes | |
double | slope |
double | x_final |
double | y_final |
Blueprint for generating a linear function from slope and point pair.
That is, the resulting linear function y(x) should satisfy the following conditions:
(y(x_f)-y(x)) = slope*(x_f-x) y(x_f) = y_f
Definition at line 525 of file polynomial.hpp.
Abstract representation of the class to be instantiated/configured.
Definition at line 530 of file polynomial.hpp.
ecl::blueprints::LinearPointSlopeForm::LinearPointSlopeForm | ( | const double | x_f, |
const double | y_f, | ||
const double | s | ||
) | [inline] |
Constructor that properly configures/initialises the blueprint.
Constructor that accepts the boundary constraints used to generate the linear function.
x_f | : final domain value. |
y_f | : final polynomial value. |
s | : slope |
Definition at line 540 of file polynomial.hpp.
virtual ecl::blueprints::LinearPointSlopeForm::~LinearPointSlopeForm | ( | ) | [inline, virtual] |
Definition at line 546 of file polynomial.hpp.
void ecl::blueprints::LinearPointSlopeForm::apply | ( | ecl::LinearFunction & | function | ) | const |
Apply the blueprint to configure an existing object.
Apply the boundary conditions to generate coefficients for the given polynomial.
function | : the linear function to configure from the input conditions. |
Definition at line 62 of file polynomial_blueprints.cpp.
Instantiate a copy of the object that is blueprinted.
Instantiates a new linear function generated from the input conditions.
Definition at line 56 of file polynomial_blueprints.cpp.
double ecl::blueprints::LinearPointSlopeForm::slope [private] |
Definition at line 566 of file polynomial.hpp.
double ecl::blueprints::LinearPointSlopeForm::x_final [private] |
Definition at line 567 of file polynomial.hpp.
double ecl::blueprints::LinearPointSlopeForm::y_final [private] |
Definition at line 567 of file polynomial.hpp.