Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:11:11

0001 // @(#)root/tmva $Id$
0002 // Author: Andreas Hoecker, Joerg Stelzer, Helge Voss, Kai Voss
0003 
0004 /**********************************************************************************
0005  * Project: TMVA - a Root-integrated toolkit for multivariate data analysis       *
0006  * Package: TMVA                                                                  *
0007  * Class  : TSpline1                                                              *
0008  *                                             *
0009  *                                                                                *
0010  * Description:                                                                   *
0011  *      Linear interpolation class; derivative of TSpline                         *
0012  *                                                                                *
0013  * Authors (alphabetical):                                                        *
0014  *      Andreas Hoecker <Andreas.Hocker@cern.ch> - CERN, Switzerland              *
0015  *      Helge Voss      <Helge.Voss@cern.ch>     - MPI-K Heidelberg, Germany      *
0016  *      Kai Voss        <Kai.Voss@cern.ch>       - U. of Victoria, Canada         *
0017  *                                                                                *
0018  * Copyright (c) 2005:                                                            *
0019  *      CERN, Switzerland                                                         *
0020  *      U. of Victoria, Canada                                                    *
0021  *      MPI-K Heidelberg, Germany                                                 *
0022  *                                                                                *
0023  * Redistribution and use in source and binary forms, with or without             *
0024  * modification, are permitted according to the terms listed in LICENSE           *
0025  * (see tmva/doc/LICENSE)                                          *
0026  **********************************************************************************/
0027 
0028 #ifndef ROOT_TMVA_TSpline1
0029 #define ROOT_TMVA_TSpline1
0030 
0031 //////////////////////////////////////////////////////////////////////////
0032 //                                                                      //
0033 // TSpline1                                                             //
0034 //                                                                      //
0035 // Linear interpolation class                                           //
0036 //                                                                      //
0037 //////////////////////////////////////////////////////////////////////////
0038 
0039 #include "TSpline.h"
0040 
0041 namespace TMVA {
0042 
0043    class TSpline1 : public TSpline {
0044 
0045    public:
0046       TSpline1(const TString &title, const TGraph *theGraph);
0047       virtual ~TSpline1( void );
0048 
0049       virtual  Double_t Eval( Double_t x ) const;
0050 
0051       // dummy implementations
0052       virtual void BuildCoeff( void );
0053       virtual void GetKnot( Int_t i, Double_t& x, Double_t& y ) const;
0054 
0055    private:
0056       std::vector<Double_t> fX;
0057       std::vector<Double_t> fY;
0058 
0059       ClassDef(TSpline1,0); //Linear interpolation class
0060    };
0061 
0062 } // namespace TMVA
0063 
0064 #endif
0065 
0066