![]() |
Project
|
#include <Spline1DHelper.h>
Public Member Functions | |
Spline1DHelper () | |
_____________ Constructors / destructors __________________________ | |
Spline1DHelper (const Spline1DHelper &)=default | |
Copy constructor: disabled. | |
Spline1DHelper & | operator= (const Spline1DHelper &)=default |
Assignment operator: disabled. | |
~Spline1DHelper ()=default | |
Destructor. | |
void | approximateDataPoints (Spline1DContainer< DataT > &spline, double xMin, double xMax, const double vx[], const double vf[], int32_t nDataPoints) |
_______________ Main functionality ________________________ | |
void | approximateFunction (Spline1DContainer< DataT > &spline, double xMin, double xMax, std::function< void(double x, double f[])> F, int32_t nAuxiliaryDataPoints=4) |
Create best-fit spline parameters for a function F. | |
void | approximateDerivatives (Spline1DContainer< DataT > &spline, const double vx[], const double vf[], int32_t nDataPoints) |
Approximate only derivatives assuming the spline values at knozts are already set. | |
void | approximateFunctionGradually (Spline1DContainer< DataT > &spline, double xMin, double xMax, std::function< void(double x, double f[])> F, int32_t nAuxiliaryDataPoints) |
void | approximateFunctionClassic (Spline1DContainer< DataT > &spline, double xMin, double xMax, std::function< void(double x, double f[])> F) |
Create classic spline parameters for a given input function F. | |
const Spline1D< double > & | getSpline () const |
_______________ Utilities ________________________ | |
const char * | getLastError () const |
Gives error string. | |
Static Public Member Functions | |
static void | getScoefficients (const typename Spline1D< double >::Knot &knotL, double u, double &cSl, double &cDl, double &cSr, double &cDr) |
static void | getDScoefficients (const typename Spline1D< double >::Knot &knotL, double u, double &cSl, double &cDl, double &cSr, double &cDr) |
static void | getDDScoefficients (const typename Spline1D< double >::Knot &knotL, double u, double &cSl, double &cDl, double &cSr, double &cDr) |
static void | getDDScoefficientsLeft (const typename Spline1D< double >::Knot &knotL, double &cSl, double &cDl, double &cSr, double &cDr) |
static void | getDDScoefficientsRight (const typename Spline1D< double >::Knot &knotL, double &cSl, double &cDl, double &cSr, double &cDr) |
static void | getDDDScoefficients (const typename Spline1D< double >::Knot &knotL, double &cSl, double &cDl, double &cSr, double &cDr) |
static int32_t | test (const bool draw=0, const bool drawDataPoints=1) |
Test the Spline1D class functionality. | |
The Spline1DHelper class is to initialize parameters for Spline1D class
Definition at line 35 of file Spline1DHelper.h.
Spline1DHelper::Spline1DHelper | ( | ) |
_____________ Constructors / destructors __________________________
Default constructor
Definition at line 41 of file Spline1DHelper.cxx.
|
default |
Copy constructor: disabled.
|
default |
Destructor.
void Spline1DHelper::approximateDataPoints | ( | Spline1DContainer< DataT > & | spline, |
double | xMin, | ||
double | xMax, | ||
const double | vx[], | ||
const double | vf[], | ||
int32_t | nDataPoints | ||
) |
_______________ Main functionality ________________________
Create best-fit spline parameters for a set of data points
Create best-fit spline parameters for a given input function F
Definition at line 135 of file Spline1DHelper.cxx.
void Spline1DHelper::approximateDerivatives | ( | Spline1DContainer< DataT > & | spline, |
const double | vx[], | ||
const double | vf[], | ||
int32_t | nDataPoints | ||
) |
Approximate only derivatives assuming the spline values at knozts are already set.
Create best-fit spline parameters for a given input function F
Definition at line 248 of file Spline1DHelper.cxx.
void Spline1DHelper::approximateFunction | ( | Spline1DContainer< DataT > & | spline, |
double | xMin, | ||
double | xMax, | ||
std::function< void(double x, double f[])> | F, | ||
int32_t | nAuxiliaryDataPoints = 4 |
||
) |
Create best-fit spline parameters for a function F.
Create best-fit spline parameters for a given input function F
Definition at line 453 of file Spline1DHelper.cxx.
void Spline1DHelper::approximateFunctionClassic | ( | Spline1DContainer< DataT > & | spline, |
double | xMin, | ||
double | xMax, | ||
std::function< void(double x, double f[])> | F | ||
) |
Create classic spline parameters for a given input function F.
Create classic spline parameters for a given input function F set slopes at the knots such, that the second derivative of the spline is continious.
Definition at line 301 of file Spline1DHelper.cxx.
void Spline1DHelper::approximateFunctionGradually | ( | Spline1DContainer< DataT > & | spline, |
double | xMin, | ||
double | xMax, | ||
std::function< void(double x, double f[])> | F, | ||
int32_t | nAuxiliaryDataPoints | ||
) |
Create best-fit spline parameters for a given input function F
Definition at line 465 of file Spline1DHelper.cxx.
|
static |
Definition at line 124 of file Spline1DHelper.cxx.
|
static |
Definition at line 89 of file Spline1DHelper.cxx.
|
static |
Definition at line 102 of file Spline1DHelper.cxx.
|
static |
Definition at line 113 of file Spline1DHelper.cxx.
|
static |
Definition at line 73 of file Spline1DHelper.cxx.
|
inline |
Gives error string.
Definition at line 100 of file Spline1DHelper.h.
|
static |
Get derivatives of the interpolated value {S(u): 1D -> nYdim} at the segment [knotL, next knotR] over the spline values Sl, Sr and the slopes Dl, Dr
Get derivatives of the interpolated value {S(u): 1D -> nYdim} at the segment [knotL, next knotR] over the spline values Sl, Sr and the slopes Dl, Dr
Definition at line 53 of file Spline1DHelper.cxx.
|
inline |
_______________ Utilities ________________________
Definition at line 78 of file Spline1DHelper.h.
|
default |
Assignment operator: disabled.
|
static |
Test the Spline1D class functionality.
Definition at line 506 of file Spline1DHelper.cxx.