17 #include "../../include/ecl/geometry/tension_spline.hpp" 24 namespace blueprints {
63 h[0] = x_set[1] - x_set[0];
64 for (
unsigned int i = 0; i < n; ++i ) {
65 h[i] = x_set[i+1]-x_set[i];
82 u[1] = beta[1] + beta[0];
83 v[1] = gamma[1]-gamma[0];
84 for (
unsigned int i = 2; i < n; ++i ) {
85 u[i] = beta[i] + beta[i-1] - a[i-1]*a[i-1]/u[i-1];
86 v[i] = gamma[i]-gamma[i-1] - a[i-1]*v[i-1]/u[i-1];
92 for (
unsigned int i = n-1; i > 0; --i ) {
109 for (
unsigned int i = 0; i < spline.
functions.size(); ++i ) {
ecl::Array< double > x_data
Embedded control libraries.
Storage container for a tension spline interpolation.
Array< double > discretised_domain
Blueprint for generating a tension spline satisfying C2 constraints.
C2TensionSpline()
Default constructor.
static blueprints::TensionSecondDerivativeInterpolation Interpolation(const double x_i, const double y_i, const double yddot_i, const double x_f, const double y_f, const double yddot_f)
Blueprint for interpolating a tension function between two end points using second derivatives...
base_type instantiate()
Instantiate a copy of the object that is blueprinted.
ecl::Array< double > yddot_data
#define ecl_assert_throw(expression, exception)
ecl::Array< double > y_data
void apply(base_type &spline) const
Apply the blueprint to configure an existing object.
Array< TensionFunction > functions