CLHEP 2.0.4.7 Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
00001 // -*- C++ -*- 00002 // $Id: LikelihoodFunctional.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $ 00003 //-------------------------------------------------------------// 00004 // // 00005 // This functional returns the Likelihood of a functoin // 00006 // given some data // 00007 // // 00008 //-------------------------------------------------------------// 00009 #ifndef _LikelihoodFunctional_h_ 00010 #define _LikelihoodFunctional_h_ 00011 #include "CLHEP/GenericFunctions/AbsFunctional.hh" 00012 #include "CLHEP/GenericFunctions/ArgumentList.hh" 00013 00014 namespace Genfun { 00015 00020 class LikelihoodFunctional:public AbsFunctional { 00021 00022 public: 00023 00024 // Constructor: 00025 LikelihoodFunctional(const ArgumentList & aList); 00026 00027 // Destructor: 00028 ~LikelihoodFunctional(); 00029 00030 // Evaluate ChiSquared of a function w.r.t the data. 00031 virtual double operator [] (const AbsFunction & function) const; 00032 00033 private: 00034 00035 const ArgumentList _aList; 00036 00037 }; 00038 } // namespace Genfun 00039 #endif