Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TSpline1.h
Go to the documentation of this file.
1 // @(#)root/tmva $Id$
2 // Author: Andreas Hoecker, Joerg Stelzer, Helge Voss, Kai Voss
3 
4 /**********************************************************************************
5  * Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
6  * Package: TMVA *
7  * Class : TSpline1 *
8  * Web : http://tmva.sourceforge.net *
9  * *
10  * Description: *
11  * Linear interpolation class; derivative of TSpline *
12  * *
13  * Authors (alphabetical): *
14  * Andreas Hoecker <Andreas.Hocker@cern.ch> - CERN, Switzerland *
15  * Helge Voss <Helge.Voss@cern.ch> - MPI-K Heidelberg, Germany *
16  * Kai Voss <Kai.Voss@cern.ch> - U. of Victoria, Canada *
17  * *
18  * Copyright (c) 2005: *
19  * CERN, Switzerland *
20  * U. of Victoria, Canada *
21  * MPI-K Heidelberg, Germany *
22  * *
23  * Redistribution and use in source and binary forms, with or without *
24  * modification, are permitted according to the terms listed in LICENSE *
25  * (http://tmva.sourceforge.net/LICENSE) *
26  **********************************************************************************/
27 
28 #ifndef ROOT_TMVA_TSpline1
29 #define ROOT_TMVA_TSpline1
30 
31 //////////////////////////////////////////////////////////////////////////
32 // //
33 // TSpline1 //
34 // //
35 // Linear interpolation class //
36 // //
37 //////////////////////////////////////////////////////////////////////////
38 
39 #include "TSpline.h"
40 
41 namespace TMVA {
42 
43  class TSpline1 : public TSpline {
44 
45  public:
46 
47  TSpline1( const TString& title, TGraph* theGraph );
48  virtual ~TSpline1( void );
49 
50  virtual Double_t Eval( Double_t x ) const;
51 
52  // dummy implementations
53  virtual void BuildCoeff( void );
54  virtual void GetKnot( Int_t i, Double_t& x, Double_t& y ) const;
55 
56  const TGraph* GetGraph() const { return fGraph; }
57 
58  private:
59 
60  TGraph *fGraph; // graph that is splined
61 
62  ClassDef(TSpline1,0); //Linear interpolation class
63  };
64 
65 } // namespace TMVA
66 
67 #endif
68 
69