![]() |
Project
|
#include <SplineHelper.h>
Public Member Functions | |
SplineHelper () | |
_____________ Constructors / destructors __________________________ | |
SplineHelper (const SplineHelper &)=delete | |
Copy constructor: disabled. | |
SplineHelper & | operator= (const SplineHelper &)=delete |
Assignment operator: disabled. | |
~SplineHelper ()=default | |
Destructor. | |
void | approximateFunction (SplineContainer< DataT > &spline, const double xMin[], const double xMax[], std::function< void(const double x[], double f[])> F, const int32_t nAxiliaryDataPoints[]=nullptr) |
_______________ Main functionality ________________________ | |
int32_t | setSpline (const SplineContainer< DataT > &spline, const int32_t nAxiliaryPoints[]) |
_______________ Interface for a step-wise construction of the best-fit spline ________________________ | |
void | approximateFunction (DataT *Fparameters, const double xMin[], const double xMax[], std::function< void(const double x[], double f[])> F) const |
approximate std::function, output in Fparameters | |
void | approximateFunctionBatch (DataT *Fparameters, const double xMin[], const double xMax[], std::function< void(const std::vector< double > x[], double f[])> F, uint32_t batchsize) const |
approximate std::function, output in Fparameters. F calculates values for a batch of points. | |
void | approximateFunction (DataT *Fparameters, const double DataPointF[]) const |
approximate a function given as an array of values at data points | |
int32_t | getNumberOfDataPoints (int32_t dimX) const |
int32_t | getNumberOfDataPoints () const |
const Spline1DHelperOld< DataT > & | getHelper (int32_t dimX) const |
const char * | getLastError () const |
_______________ Utilities ________________________ | |
Static Public Member Functions | |
static int32_t | test (const bool draw=0, const bool drawDataPoints=1) |
Test the Spline class functionality. | |
static int32_t | arraytopoints (int32_t point, int32_t result[], const int32_t numbers[], int32_t dim) |
static int32_t | pointstoarray (const int32_t indices[], const int32_t numbers[], int32_t dim) |
The SplineHelper class is to initialize Spline* objects
Definition at line 40 of file SplineHelper.h.
SplineHelper::SplineHelper | ( | ) |
_____________ Constructors / destructors __________________________
Default constructor
Definition at line 39 of file SplineHelper.cxx.
|
delete |
Copy constructor: disabled.
|
default |
Destructor.
void SplineHelper::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
write derivatives in FParameters
LOG(info) << " current numbers: ";
write derivatives in FParameters
Definition at line 217 of file SplineHelper.cxx.
void SplineHelper::approximateFunction | ( | DataT * | Fparameters, |
const double | xMin[], | ||
const double | xMax[], | ||
std::function< void(const 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 Fparameter
Definition at line 90 of file SplineHelper.cxx.
void o2::gpu::SplineHelper< DataT >::approximateFunction | ( | SplineContainer< DataT > & | spline, |
const double | xMin[], | ||
const double | xMax[], | ||
std::function< void(const double x[], double f[])> | F, | ||
const int32_t | nAxiliaryDataPoints[] = nullptr |
||
) |
_______________ Main functionality ________________________
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 118 of file SplineHelper.h.
void SplineHelper::approximateFunctionBatch | ( | DataT * | Fparameters, |
const double | xMin[], | ||
const double | xMax[], | ||
std::function< void(const std::vector< double > x[], double f[])> | F, | ||
uint32_t | batchsize | ||
) | const |
approximate std::function, output in Fparameters. F calculates values for a batch of points.
Create best-fit spline parameters for a given input function F. F calculates values for a batch of points. output in Fparameters
Definition at line 157 of file SplineHelper.cxx.
|
static |
Definition at line 70 of file SplineHelper.cxx.
|
inline |
Definition at line 89 of file SplineHelper.h.
|
inline |
_______________ Utilities ________________________
Gives error string
Definition at line 94 of file SplineHelper.h.
|
inline |
Definition at line 87 of file SplineHelper.h.
|
inline |
Definition at line 85 of file SplineHelper.h.
|
delete |
Assignment operator: disabled.
|
static |
Definition at line 54 of file SplineHelper.cxx.
int32_t o2::gpu::SplineHelper< DataT >::setSpline | ( | const SplineContainer< DataT > & | spline, |
const int32_t | nAxiliaryPoints[] | ||
) |
_______________ Interface for a step-wise construction of the best-fit spline ________________________
precompute everything needed for the construction
Definition at line 137 of file SplineHelper.h.
|
static |
Test the Spline class functionality.
Definition at line 439 of file SplineHelper.cxx.