Documentation 6b54b78464
Loading...
Searching...
No Matches
CLinearInterpolation Class Referencefinal

Linear interpolation. More...

#include <C1DInterpolation.hpp>

Inheritance diagram for CLinearInterpolation:
[legend]

Public Member Functions

 CLinearInterpolation ()=default
 
 CLinearInterpolation (const std::vector< su2double > &X, const std::vector< su2double > &Data)
 Constructor of the CLinearInterpolation class.
 
su2double EvaluateSpline (su2double Point_Interp) const override
 Evaluate the value of the spline at a point.
 
- Public Member Functions inherited from C1DInterpolation
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.
 
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 C1DInterpolation
std::vector< su2double > x
 
std::vector< su2double > y
 Data points.
 

Detailed Description

Linear interpolation.

Constructor & Destructor Documentation

◆ CLinearInterpolation() [1/2]

CLinearInterpolation::CLinearInterpolation ( )
default

◆ CLinearInterpolation() [2/2]

CLinearInterpolation::CLinearInterpolation ( const std::vector< su2double > &  X,
const std::vector< su2double > &  Data 
)
inline

Constructor of the CLinearInterpolation class.

Parameters
[in]X- the x values (sorted low to high).
[in]Data- the f(x) values.

Member Function Documentation

◆ EvaluateSpline()

su2double CLinearInterpolation::EvaluateSpline ( su2double  Point_Interp) const
overridevirtual

Evaluate the value of the spline at a point.

Implements C1DInterpolation.


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