31#ifndef ROOT_Math_GSLInterpolator
32#define ROOT_Math_GSLInterpolator
40#include "gsl/gsl_interp.h"
41#include "gsl/gsl_spline.h"
43#include "gsl/gsl_errno.h"
70 bool Init(
unsigned int ndata,
const double *
x,
const double *
y);
76 static unsigned int nErrors = 0;
87 MATH_WARN_MSG(
"GSLInterpolator::Eval",
"Suppressing additional warnings");
98 static unsigned int nErrors = 0;
109 MATH_WARN_MSG(
"GSLInterpolator::Deriv",
"Suppressing additional warnings");
119 static unsigned int nErrors = 0;
128 MATH_WARN_MSG(
"GSLInterpolator::Deriv2", gsl_strerror(ierr));
130 MATH_WARN_MSG(
"GSLInterpolator::Deriv2",
"Suppressing additional warnings");
143 static unsigned int nErrors = 0;
154 MATH_WARN_MSG(
"GSLInterpolator::Integ",
"Suppressing additional warnings");
#define MATH_WARN_MSG(loc, str)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
Interpolation class based on GSL interpolation functions.
GSLInterpolator & operator=(const GSLInterpolator &)=delete
GSLInterpolator(GSLInterpolator &&)=delete
virtual ~GSLInterpolator()
gsl_interp_accel * fAccel
double Deriv2(double x) const
double Eval(double x) const
bool Init(unsigned int ndata, const double *x, const double *y)
const gsl_interp_type * fInterpType
double Integ(double a, double b) const
GSLInterpolator(const Interpolation::Type type, const std::vector< double > &x, const std::vector< double > &y)
double Deriv(double x) const
GSLInterpolator(const GSLInterpolator &)=delete
Type
Enumeration defining the types of interpolation methods availables.
Namespace for new Math classes and functions.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...