source: branches/removing_cpp11_features/mtools/MCubicSpline.h

Last change on this file was 3210, checked in by raducci, 21 years ago
*** empty log message ***
File size: 1021 bytes
Line 
1#ifndef MARS_MCubicSpline
2#define MARS_MCubicSpline
3
4#ifndef MARS_MAGIC
5#include "MAGIC.h"
6#endif
7
8#ifndef ROOT_TObjArray
9#include "TObjArray.h"
10#endif
11
12class MCubicCoeff;
13
14class MCubicSpline : public TObject
15{
16 private:
17 TObjArray *fCoeff; //array of the coefficients
18
19 void Init(const Byte_t *y, const Byte_t *x, Bool_t areAllEq, Int_t n, Double_t begSD, Double_t endSD);
20
21 public:
22 MCubicSpline(const Byte_t *y, const Byte_t *x, Bool_t areAllEq, Int_t n, Double_t begSD=0.0, Double_t endSD=0.0);
23 MCubicSpline(const Byte_t *y);
24 ~MCubicSpline();
25 Double_t Eval(Double_t x); //Eval the spline at a point x
26 Double_t EvalMax(); //Eval the max
27 Double_t EvalMin(); //Eval the min
28 Double_t EvalAbMax(); //Eval the abscissa of the max
29 Double_t EvalAbMin(); //Eval the abscissa of the min
30 Double_t FindVal(Double_t y, Double_t x0, Char_t direction); //Finds the abscissa where the spline reaches y
31
32 ClassDef(MCubicSpline, 0) //Class to contain spline coefficients
33};
34
35#endif
Note: See TracBrowser for help on using the repository browser.