![]() |
Project
|
#include <Spline1DHelperOld.h>
Classes | |
| struct | DataPoint |
| Helper structure for 1D spline construction. More... | |
Public Member Functions | |
| Spline1DHelperOld () | |
| _____________ Constructors / destructors __________________________ | |
| Spline1DHelperOld (const Spline1DHelperOld &)=default | |
| Copy constructor: disabled. | |
| Spline1DHelperOld & | operator= (const Spline1DHelperOld &)=default |
| Assignment operator: disabled. | |
| ~Spline1DHelperOld ()=default | |
| Destructor. | |
| void | bandGauss (double A[], double b[], int32_t n) |
| _______________ Main functionality ________________________ | |
| void | approximateDataPoints (Spline1DContainer< DataT > &spline, double xMin, double xMax, double x[], double f[], int32_t nDataPoints) |
| Create best-fit spline parameters for a given input function F. | |
| 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 given input function F. | |
| void | approximateFunctionGradually (Spline1DContainer< DataT > &spline, double xMin, double xMax, std::function< void(double x, double f[])> F, int32_t nAuxiliaryDataPoints=4) |
| Create best-fit spline parameters gradually for a given input function F. | |
| 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. | |
| int32_t | setSpline (const Spline1DContainer< DataT > &spline, int32_t nFdimensions, int32_t nAuxiliaryDataPoints) |
| _______________ Interface for a step-wise construction of the best-fit spline ________________________ | |
| int32_t | setSpline (const Spline1DContainer< DataT > &spline, int32_t nFdimensions, double xMin, double xMax, double vx[], int32_t nDataPoints) |
| precompute everything needed for the construction | |
| void | approximateFunction (DataT *Fparameters, double xMin, double xMax, std::function< void(double x, double f[])> F) const |
| approximate std::function, output in Fparameters | |
| void | approximateFunctionGradually (DataT *Fparameters, double xMin, double xMax, std::function< void(double x, double f[])> F) const |
| approximate std::function gradually, output in Fparameters | |
| int32_t | getNumberOfDataPoints () const |
| number of data points | |
| void | approximateFunction (DataT *Fparameters, const double DataPointF[]) const |
| approximate a function given as an array of values at data points | |
| void | approximateFunctionGradually (DataT *Fparameters, const double DataPointF[]) const |
| gradually approximate a function given as an array of values at data points | |
| void | copySfromDataPoints (DataT *Fparameters, const double DataPointF[]) const |
| a tool for the gradual approximation: set spline values S_i at knots == function values | |
| void | approximateDerivatives (DataT *Fparameters, const double DataPointF[]) const |
| const Spline1D< double > & | getSpline () const |
| _______________ Utilities ________________________ | |
| int32_t | getKnotDataPoint (int32_t iknot) const |
| const DataPoint & | getDataPoint (int32_t ip) const |
| 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 Spline1DHelperOld class is to initialize parameters for Spline1D class
Definition at line 37 of file Spline1DHelperOld.h.
| Spline1DHelperOld::Spline1DHelperOld | ( | ) |
_____________ Constructors / destructors __________________________
Default constructor
Definition at line 40 of file Spline1DHelperOld.cxx.
|
default |
Copy constructor: disabled.
|
default |
Destructor.
| void Spline1DHelperOld::approximateDataPoints | ( | Spline1DContainer< DataT > & | spline, |
| double | xMin, | ||
| double | xMax, | ||
| double | x[], | ||
| double | f[], | ||
| int32_t | nDataPoints | ||
| ) |
Create best-fit spline parameters for a given input function F.
Create best-fit spline parameters for a given input function F
Definition at line 257 of file Spline1DHelperOld.cxx.
| void Spline1DHelperOld::approximateDerivatives | ( | DataT * | Fparameters, |
| const double | DataPointF[] | ||
| ) | const |
a tool for the gradual approximation: calibrate spline derivatives D_i using already calibrated spline values S_i
a tool for the gradual approximation: calibrate spline derivatives D_i using already calibrated spline values S_i input and output output in Sparameters
Definition at line 801 of file Spline1DHelperOld.cxx.
| void Spline1DHelperOld::approximateFunction | ( | DataT * | Fparameters, |
| const double | DataPointF[] | ||
| ) | const |
approximate a function given as an array of values at data points
Approximate a function given as an array of values at data points
Definition at line 742 of file Spline1DHelperOld.cxx.
| void Spline1DHelperOld::approximateFunction | ( | DataT * | Fparameters, |
| double | xMin, | ||
| double | xMax, | ||
| std::function< void(double x, double f[])> | F | ||
| ) | const |
approximate std::function, output in Fparameters
Create best-fit spline parameters for a given input function F output in Sparameters
Definition at line 292 of file Spline1DHelperOld.cxx.
| void Spline1DHelperOld::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 given input function F.
Create best-fit spline parameters for a given input function F
Definition at line 270 of file Spline1DHelperOld.cxx.
| void Spline1DHelperOld::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 134 of file Spline1DHelperOld.cxx.
| void Spline1DHelperOld::approximateFunctionGradually | ( | DataT * | Fparameters, |
| const double | DataPointF[] | ||
| ) | const |
gradually approximate a function given as an array of values at data points
gradually approximate a function given as an array of values at data points output in Sparameters
Definition at line 777 of file Spline1DHelperOld.cxx.
| void Spline1DHelperOld::approximateFunctionGradually | ( | DataT * | Fparameters, |
| double | xMin, | ||
| double | xMax, | ||
| std::function< void(double x, double f[])> | F | ||
| ) | const |
approximate std::function gradually, output in Fparameters
Create best-fit spline parameters gradually for a given input function F output in Sparameters
Definition at line 306 of file Spline1DHelperOld.cxx.
| void Spline1DHelperOld::approximateFunctionGradually | ( | Spline1DContainer< DataT > & | spline, |
| double | xMin, | ||
| double | xMax, | ||
| std::function< void(double x, double f[])> | F, | ||
| int32_t | nAuxiliaryDataPoints = 4 |
||
| ) |
Create best-fit spline parameters gradually for a given input function F.
Create best-fit spline parameters gradually for a given input function F
Definition at line 281 of file Spline1DHelperOld.cxx.
| void o2::gpu::Spline1DHelperOld< DataT >::bandGauss | ( | double | A[], |
| double | b[], | ||
| int32_t | n | ||
| ) |
_______________ Main functionality ________________________
| void Spline1DHelperOld::copySfromDataPoints | ( | DataT * | Fparameters, |
| const double | DataPointF[] | ||
| ) | const |
a tool for the gradual approximation: set spline values S_i at knots == function values
a tool for the gradual approximation: set spline values S_i at knots == function values output in Sparameters
Definition at line 787 of file Spline1DHelperOld.cxx.
|
inline |
Definition at line 126 of file Spline1DHelperOld.h.
|
static |
Definition at line 123 of file Spline1DHelperOld.cxx.
|
static |
Definition at line 88 of file Spline1DHelperOld.cxx.
|
static |
Definition at line 101 of file Spline1DHelperOld.cxx.
|
static |
Definition at line 112 of file Spline1DHelperOld.cxx.
|
static |
Definition at line 72 of file Spline1DHelperOld.cxx.
|
inline |
Definition at line 124 of file Spline1DHelperOld.h.
|
inline |
Gives error string.
Definition at line 148 of file Spline1DHelperOld.h.
|
inline |
number of data points
Definition at line 105 of file Spline1DHelperOld.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 52 of file Spline1DHelperOld.cxx.
|
inline |
_______________ Utilities ________________________
Definition at line 122 of file Spline1DHelperOld.h.
|
default |
Assignment operator: disabled.
| int32_t Spline1DHelperOld::setSpline | ( | const Spline1DContainer< DataT > & | spline, |
| int32_t | nFdimensions, | ||
| double | xMin, | ||
| double | xMax, | ||
| double | vx[], | ||
| int32_t | nDataPoints | ||
| ) |
precompute everything needed for the construction
Definition at line 467 of file Spline1DHelperOld.cxx.
| int32_t Spline1DHelperOld::setSpline | ( | const Spline1DContainer< DataT > & | spline, |
| int32_t | nFdimensions, | ||
| int32_t | nAuxiliaryDataPoints | ||
| ) |
_______________ Interface for a step-wise construction of the best-fit spline ________________________
precompute everything needed for the construction
Definition at line 320 of file Spline1DHelperOld.cxx.
|
static |
Test the Spline1D class functionality.
Definition at line 861 of file Spline1DHelperOld.cxx.