![]() |
Documentation 6b54b78464
|
Cubic spline interpolation. More...
#include <C1DInterpolation.hpp>
Public Types | |
| enum | END_TYPE { SECOND , FIRST } |
Public Member Functions | |
| CCubicSpline ()=default | |
| CCubicSpline (const std::vector< su2double > &X, const std::vector< su2double > &Data, END_TYPE startCondition=SECOND, su2double startValue=0.0, END_TYPE endCondition=SECOND, su2double endValue=0.0) | |
| Constructor of the CCubicSpline class (defaults to natural spline). | |
| void | SetSpline (const std::vector< su2double > &X, const std::vector< su2double > &Data) override |
| Build the spline. | |
Public Member Functions inherited from CAkimaInterpolation | |
| CAkimaInterpolation ()=default | |
| CAkimaInterpolation (const std::vector< su2double > &X, const std::vector< su2double > &Data) | |
| Constructor of the CAkimaInterpolation class. | |
| su2double | EvaluateSpline (su2double Point_Interp) const final |
| Evaluate the value of the spline at a point. | |
Public Member Functions inherited from C1DInterpolation | |
| virtual | ~C1DInterpolation ()=default |
| Virtual destructor of the C1DInterpolation class. | |
| su2double | operator() (su2double Point_Interp) const |
Additional Inherited Members | |
Protected Member Functions inherited from C1DInterpolation | |
| size_t | lower_bound (su2double xi) const |
| Find containing interval. | |
Protected Attributes inherited from CAkimaInterpolation | |
| std::vector< su2double > | b |
| std::vector< su2double > | c |
| std::vector< su2double > | d |
| local variables for Akima spline cooefficients | |
Protected Attributes inherited from C1DInterpolation | |
| std::vector< su2double > | x |
| std::vector< su2double > | y |
| Data points. | |
Cubic spline interpolation.
|
default |
|
inline |
Constructor of the CCubicSpline class (defaults to natural spline).
| [in] | X | - the x values (sorted low to high). |
| [in] | Data | - the f(x) values. |
| [in] | startCondition | - 1st or 2nd derivative imposed at the start. |
| [in] | startValue | - value of the derivative imposed at the start. |
| [in] | endCondition | - 1st or 2nd derivative imposed at the end. |
| [in] | endValue | - value of the derivative imposed at the end. |
|
overridevirtual |
Build the spline.
Reimplemented from CAkimaInterpolation.