18 #include "../../include/ecl/geometry/cubic_spline.hpp" 25 namespace blueprints {
43 const double ydot_0,
const double ydot_f) :
60 for (
unsigned int i = 1; i <= n-2; ++i){
66 u[i] = (6.0*u[i]/(
x_data[i+1]-
x_data[i-1]) - sig*u[i-1])/p;
74 for (
int k = n-2; k >= 0; --k ) {
100 for (
unsigned int i = 1; i <= n-2; ++i){
106 u[i] = (6.0*u[i]/(
x_data[i+1]-
x_data[i-1]) - sig*u[i-1])/p;
114 for (
int k = n-2; k >= 0; --k ) {
142 const double ydot_0,
const double ydot_f) :
152 for (
unsigned int i = 1; i < (
x_data.
size()-1); ++i ) {
153 double ydot_before, ydot_after;
156 ydot_data[i] = (ydot_before + ydot_after)/2;
Array< CubicPolynomial > cubic_polynomials
Embedded control libraries.
Blueprint for generating a cubic spline satisfying C2 constraints.
#define ecl_throw(exception)
#define ecl_assert_throw(expression, exception)
ecl::Array< double > ydot_data
ecl::CubicSpline instantiate()
Instantiate a copy of the object that is blueprinted.
DerivativeHeuristicCubicSpline()
Default constructor.
Storage container for a cubic spline interpolation.
Array< double > discretised_domain
ecl::Array< double > yddot_data
ecl::Array< double > y_data
ecl::Array< double > x_data
ecl::Array< double > x_data
Blueprint for generating a cubic spline satisfying C2 constraints.
ecl::CubicSpline instantiate()
Instantiate a copy of the object that is blueprinted.
C2CubicSpline()
Default constructor.
void apply(ecl::CubicSpline &spline) const
Apply the blueprint to configure an existing object.
void apply(ecl::CubicSpline &spline) const
Apply the blueprint to configure an existing object.
ecl::Array< double > y_data