23 #include "dlib/matrix/matrix.h"
24 #include "dlib/matrix.h"
38 static inline void repeatedValueInterpolation(
double *output_x,
double *output_y,
double *output_weight,
int *outputLength,
double *input_x,
double *input_y,
double *input_weight,
int inputLength);
66 static void BreaksGenerator(
double *Userbreaks,
int UserbreaksLength,
double start,
double resolution);
74 static std::vector<double>
BreaksGenerator(
double start,
double end,
int NumberOfPoints);
83 static void BreaksGeneratorExp(
double *Userbreaks,
int NumOfPoints,
double start,
double end);
103 static void fit(
PieceweisePolynomial* pp,
double* input_x,
double* input_y,
double* input_w,
int inputLength,
double smoothingFactor);
121 static void CubicSplineEvaluation(
double *interpolatedSpline,
double *d_interpolatedSpline,
double *dd_interpolatedSpline,
double *ddd_interpolatedSpline,
double *Userbreaks,
int UserbreaksLength,
PieceweisePolynomial &pp);
Definition: cubicpiecewisefunction.h:36
static void BreaksGenerator(double *Userbreaks, int UserbreaksLength, double start, double resolution)
Definition: cubic_piecewise_function.cpp:40
static void BreaksGeneratorExp(double *Userbreaks, int NumOfPoints, double start, double end)
Definition: cubic_piecewise_function.cpp:61
static double splineEvaluation(int index, double point, PieceweisePolynomial &pp)
Definition: cubic_piecewise_function.cpp:553
static void CubicSplineEvaluation(double *interpolatedSpline, double *d_interpolatedSpline, double *dd_interpolatedSpline, double *ddd_interpolatedSpline, double *Userbreaks, int UserbreaksLength, PieceweisePolynomial &pp)
Definition: cubic_piecewise_function.cpp:134
static void deleteCubicSplinepp(PieceweisePolynomial &pp)
Definition: cubic_piecewise_function.cpp:506
static void fit(PieceweisePolynomial *pp, double *input_x, double *input_y, double *input_w, int inputLength, double smoothingFactor)
Definition: cubic_piecewise_function.cpp:256
static void deleteCubicSplinepp1(PieceweisePolynomial *pp)
Definition: cubic_piecewise_function.cpp:515
static LocalCoordination localCoordination(double *Userbreaks, int UserbreaksLength, PieceweisePolynomial &pp)
Definition: cubic_piecewise_function.cpp:78
static void smoothingSpline(PieceweisePolynomial *pp, double *input_x, double *input_y, double *input_w, int inputLength, double smoothingFactor)
Definition: cubic_piecewise_function.cpp:262
static void toPolynomialFrom(PieceweisePolynomial *pp, double *input_breaks, double *input_coef1, double *input_coef2, double *input_coef3, double *input_coef4, int inputLength)
Definition: cubic_piecewise_function.cpp:21
static void repeatedValueInterpolation(double *output_x, double *output_y, double *output_weight, int *outputLength, double *input_x, double *input_y, double *input_weight, int inputLength)
Definition: cubic_piecewise_function.cpp:146
static int findIndex(double point, PieceweisePolynomial &pp)
Definition: cubic_piecewise_function.cpp:525
Definition: areaofeffectconverter.h:20
Definition: cubicpiecewisefunction.h:41
std::vector< int > lc_index
Definition: cubicpiecewisefunction.h:43
std::vector< double > lc_breaks
Definition: cubicpiecewisefunction.h:42
Definition: cubicpiecewisefunction.h:51
double * coef_1
Definition: cubicpiecewisefunction.h:53
double * coef_3
Definition: cubicpiecewisefunction.h:55
int dimension
Definition: cubicpiecewisefunction.h:57
double * breaks
Definition: cubicpiecewisefunction.h:52
double * coef_2
Definition: cubicpiecewisefunction.h:54
double * coef_4
Definition: cubicpiecewisefunction.h:56