Blueprint for interpolating a quintic polynomial between end point conditions. More...
#include <polynomial.hpp>
Public Types | |
typedef ecl::QuinticPolynomial | base_type |
Abstract representation of the class to be instantiated/configured. | |
Public Member Functions | |
void | apply (ecl::QuinticPolynomial &polynomial) const |
Apply the blueprint to configure an existing object. | |
ecl::QuinticPolynomial | instantiate () |
Instantiate a copy of the object that is blueprinted. | |
QuinticInterpolation (const double x_i, const double y_i, const double ydot_i, const double yddot_i, const double x_f, const double y_f, const double ydot_f, const double yddot_f) | |
Constructor that properly configures/initialises the blueprint. | |
virtual | ~QuinticInterpolation () |
Private Attributes | |
double | x_final |
double | x_initial |
double | y_final |
double | y_initial |
double | yddot_final |
double | yddot_initial |
double | ydot_final |
double | ydot_initial |
Blueprint for interpolating a quintic polynomial between end point conditions.
Blueprint for interpolating a quintic polynomial between two end point conditions. That is, the resulting polynomial y(x) should satisfy the following conditions:
y(x_i) = y_i y'(x_i) = y'_i y''(x_i) = y''_i y(x_f) = y_f y'(x_f) = y'_f y''(x_f) = y''_f
Definition at line 764 of file polynomial.hpp.
Abstract representation of the class to be instantiated/configured.
Definition at line 769 of file polynomial.hpp.
ecl::blueprints::QuinticInterpolation::QuinticInterpolation | ( | const double | x_i, |
const double | y_i, | ||
const double | ydot_i, | ||
const double | yddot_i, | ||
const double | x_f, | ||
const double | y_f, | ||
const double | ydot_f, | ||
const double | yddot_f | ||
) | [inline] |
Constructor that properly configures/initialises the blueprint.
Constructor that accepts the boundary constraints used to generate the cubic.
x_i | : initial domain value. |
y_i | : initial polynomial value. |
ydot_i | : initial polynomial slope. |
yddot_i | : initial polynomial curvature. |
x_f | : final domain value. |
y_f | : final polynomial value. |
ydot_f | : final polynomial slope. |
yddot_f | : final polynomial curvature. |
Definition at line 784 of file polynomial.hpp.
virtual ecl::blueprints::QuinticInterpolation::~QuinticInterpolation | ( | ) | [inline, virtual] |
Definition at line 796 of file polynomial.hpp.
void ecl::blueprints::QuinticInterpolation::apply | ( | ecl::QuinticPolynomial & | polynomial | ) | const |
Apply the blueprint to configure an existing object.
Apply the boundary conditions to generate coefficients for the given polynomial.
polynomial | : the polynomial to configure from the supplied boundary conditions. |
Definition at line 147 of file polynomial_blueprints.cpp.
Instantiate a copy of the object that is blueprinted.
Instantiates a new cubic generated from the input boundary conditions.
Definition at line 141 of file polynomial_blueprints.cpp.
double ecl::blueprints::QuinticInterpolation::x_final [private] |
Definition at line 817 of file polynomial.hpp.
double ecl::blueprints::QuinticInterpolation::x_initial [private] |
Definition at line 816 of file polynomial.hpp.
double ecl::blueprints::QuinticInterpolation::y_final [private] |
Definition at line 817 of file polynomial.hpp.
double ecl::blueprints::QuinticInterpolation::y_initial [private] |
Definition at line 816 of file polynomial.hpp.
double ecl::blueprints::QuinticInterpolation::yddot_final [private] |
Definition at line 817 of file polynomial.hpp.
double ecl::blueprints::QuinticInterpolation::yddot_initial [private] |
Definition at line 816 of file polynomial.hpp.
double ecl::blueprints::QuinticInterpolation::ydot_final [private] |
Definition at line 817 of file polynomial.hpp.
double ecl::blueprints::QuinticInterpolation::ydot_initial [private] |
Definition at line 816 of file polynomial.hpp.