Documentation 6b54b78464
Loading...
Searching...
No Matches
C1DInterpolation Class Referenceabstract

Base class for 1D interpolation. More...

#include <C1DInterpolation.hpp>

Inheritance diagram for C1DInterpolation:
[legend]

Public Member Functions

virtual ~C1DInterpolation ()=default
 Virtual destructor of the C1DInterpolation class.
 
virtual void SetSpline (const std::vector< su2double > &X, const std::vector< su2double > &Data)
 Virtual method for setting the coefficients of the respective spline.
 
virtual su2double EvaluateSpline (su2double Point_Interp) const =0
 Evaluate the value of the spline at a point.
 
su2double operator() (su2double Point_Interp) const
 

Protected Member Functions

size_t lower_bound (su2double xi) const
 Find containing interval.
 

Protected Attributes

std::vector< su2double > x
 
std::vector< su2double > y
 Data points.
 

Detailed Description

Base class for 1D interpolation.

Constructor & Destructor Documentation

◆ ~C1DInterpolation()

virtual C1DInterpolation::~C1DInterpolation ( )
virtualdefault

Virtual destructor of the C1DInterpolation class.

Member Function Documentation

◆ EvaluateSpline()

virtual su2double C1DInterpolation::EvaluateSpline ( su2double  Point_Interp) const
pure virtual

Evaluate the value of the spline at a point.

Implemented in CAkimaInterpolation, and CLinearInterpolation.

◆ lower_bound()

size_t C1DInterpolation::lower_bound ( su2double  xi) const
inlineprotected

Find containing interval.

Parameters
[in]xi- Point for which interpolation is required.
Returns
The start index of the interval, or the size if the coordinate is out of bounds.

◆ operator()()

su2double C1DInterpolation::operator() ( su2double  Point_Interp) const
inline

◆ SetSpline()

virtual void C1DInterpolation::SetSpline ( const std::vector< su2double > &  X,
const std::vector< su2double > &  Data 
)
inlinevirtual

Virtual method for setting the coefficients of the respective spline.

Parameters
[in]X- the x values.
[in]Data- the f(x) values.

Reimplemented in CAkimaInterpolation, and CCubicSpline.

Member Data Documentation

◆ x

std::vector<su2double> C1DInterpolation::x
protected

◆ y

std::vector<su2double> C1DInterpolation::y
protected

Data points.


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