Public Types | Public Member Functions | Private Attributes | List of all members
ecl::blueprints::CubicSecondDerivativeInterpolation Class Reference

Blueprint for interpolating a cubic polynomial between end point conditions. More...

#include <polynomial.hpp>

Inheritance diagram for ecl::blueprints::CubicSecondDerivativeInterpolation:
Inheritance graph
[legend]

Public Types

typedef ecl::CubicPolynomial base_type
 Abstract representation of the class to be instantiated/configured. More...
 

Public Member Functions

void apply (base_type &polynomial) const
 Apply the blueprint to configure an existing object. More...
 
 CubicSecondDerivativeInterpolation (const double x_i, const double y_i, const double yddot_i, const double x_f, const double y_f, const double yddot_f)
 Constructor that properly configures/initialises the blueprint. More...
 
base_type instantiate ()
 Instantiate a copy of the object that is blueprinted. More...
 
virtual ~CubicSecondDerivativeInterpolation ()
 
- Public Member Functions inherited from ecl::BluePrint< CubicSecondDerivativeInterpolation >
 BluePrint ()
 
void implementApply (BaseType &object) const
 
BaseType implementInstantiate ()
 
virtual ~BluePrint ()
 

Private Attributes

double x_final
 
double x_initial
 
double y_final
 
double y_initial
 
double yddot_final
 
double yddot_initial
 

Detailed Description

Blueprint for interpolating a cubic polynomial between end point conditions.

Blueprint for interpolating a cubic 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_f) = y_f
y''(x_i) = y''_i
y''(x_f) = y''_f
See also
Polynomial.

Definition at line 690 of file polynomial.hpp.

Member Typedef Documentation

◆ base_type

Abstract representation of the class to be instantiated/configured.

Definition at line 695 of file polynomial.hpp.

Constructor & Destructor Documentation

◆ CubicSecondDerivativeInterpolation()

ecl::blueprints::CubicSecondDerivativeInterpolation::CubicSecondDerivativeInterpolation ( const double  x_i,
const double  y_i,
const double  yddot_i,
const double  x_f,
const double  y_f,
const double  yddot_f 
)
inline

Constructor that properly configures/initialises the blueprint.

Constructor that accepts the boundary constraints used to generate the cubic.

Parameters
x_i: initial domain value.
y_i: initial polynomial value.
yddot_i: initial polynomial curvature.
x_f: final domain value.
y_f: final polynomial value.
yddot_f: final polynomial curvature.

Definition at line 708 of file polynomial.hpp.

◆ ~CubicSecondDerivativeInterpolation()

virtual ecl::blueprints::CubicSecondDerivativeInterpolation::~CubicSecondDerivativeInterpolation ( )
inlinevirtual

Definition at line 718 of file polynomial.hpp.

Member Function Documentation

◆ apply()

void ecl::blueprints::CubicSecondDerivativeInterpolation::apply ( base_type polynomial) const

Apply the blueprint to configure an existing object.

Apply the boundary conditions to generate coefficients for the given polynomial.

Parameters
polynomial: the polynomial to configure from the supplied boundary conditions.

Definition at line 123 of file polynomial_blueprints.cpp.

◆ instantiate()

ecl::CubicPolynomial ecl::blueprints::CubicSecondDerivativeInterpolation::instantiate ( )

Instantiate a copy of the object that is blueprinted.

Instantiates a new cubic generated from the input boundary conditions.

Returns
CubicPolynomial : a copy of the generated cubic.

Definition at line 117 of file polynomial_blueprints.cpp.

Member Data Documentation

◆ x_final

double ecl::blueprints::CubicSecondDerivativeInterpolation::x_final
private

Definition at line 739 of file polynomial.hpp.

◆ x_initial

double ecl::blueprints::CubicSecondDerivativeInterpolation::x_initial
private

Definition at line 738 of file polynomial.hpp.

◆ y_final

double ecl::blueprints::CubicSecondDerivativeInterpolation::y_final
private

Definition at line 739 of file polynomial.hpp.

◆ y_initial

double ecl::blueprints::CubicSecondDerivativeInterpolation::y_initial
private

Definition at line 738 of file polynomial.hpp.

◆ yddot_final

double ecl::blueprints::CubicSecondDerivativeInterpolation::yddot_final
private

Definition at line 739 of file polynomial.hpp.

◆ yddot_initial

double ecl::blueprints::CubicSecondDerivativeInterpolation::yddot_initial
private

Definition at line 738 of file polynomial.hpp.


The documentation for this class was generated from the following files:


ecl_geometry
Author(s): Daniel Stonier
autogenerated on Mon Feb 28 2022 22:18:49