74 std::span<const double>
y0,
int order,
bool logx,
bool logy)
77 const std::string
title_spline = std::string(title) +
"_spline";
78 if (x0.size() !=
y0.size()) {
80 errMsg <<
"RooSpline::ctor(" <<
GetName() <<
") ERROR: size of x and y are not equal";
82 throw std::invalid_argument(
errMsg.str());
86 std::vector<double>
x0Copy;
87 x0Copy.assign(x0.begin(), x0.end());
88 std::vector<double>
y0Copy;
104 }
else if (
order == 5) {
108 errMsg <<
"supported orders are 3 or 5";
109 coutE(InputArguments) <<
errMsg.str() << std::endl;
110 throw std::invalid_argument(
errMsg.str());
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
const_iterator begin() const
const_iterator end() const
Abstract base class for objects that represent a real value and implements functionality common to al...
A RooFit class for creating spline functions.
bool _logx
Flag indicating logarithmic scaling of x values.
double evaluate() const override
Evaluate the spline function at the current point.
RooRealProxy _x
The independent variable.
int order() const
Return the order of the spline.
std::unique_ptr< TSpline > _spline
The spline object.
bool _logy
Flag indicating logarithmic scaling of y values.
A TGraph is an object made of two arrays X and Y with npoints each.
const char * GetName() const override
Returns name of object.
Class to create third splines to interpolate knots Arbitrary conditions can be introduced for first a...
Class to create quintic natural splines to interpolate knots Arbitrary conditions can be introduced f...
Base class for spline implementation containing the Draw/Paint methods.