Logo ROOT   6.13/01
Reference Guide
TFit.hxx
Go to the documentation of this file.
1 /// \file ROOT/TFit.h
2 /// \ingroup MathCore ROOT7
3 /// \author Axel Naumann <axel@cern.ch>
4 /// \date 2015-09-06
5 /// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
6 /// is welcome!
7 
8 /*************************************************************************
9  * Copyright (C) 1995-2015, Rene Brun and Fons Rademakers. *
10  * All rights reserved. *
11  * *
12  * For the licensing terms see $ROOTSYS/LICENSE. *
13  * For the list of contributors see $ROOTSYS/README/CREDITS. *
14  *************************************************************************/
15 
16 #ifndef ROOT_TFit
17 #define ROOT_TFit
18 
19 #include <array>
20 #include <functional>
21 
22 #include "ROOT/RArrayView.hxx"
23 
24 #include "ROOT/THist.hxx"
25 
26 namespace ROOT {
27 namespace Experimental {
28 
29 class TFitResult {
30 };
31 
32 template <int DIMENSION>
33 class TFunction {
34 public:
35  TFunction(std::function<double(const std::array<double, DIMENSION> &, const std::array_view<double> &par)> func) {}
36 };
37 
38 template <int DIMENSIONS, class PRECISION, template <int D_, class P_, template <class P__> class S_> class... STAT>
39 TFitResult FitTo(const THist<DIMENSIONS, PRECISION, STAT...> &hist, const TFunction<DIMENSIONS> &func,
40  std::array_view<double> paramInit)
41 {
42  return TFitResult();
43 }
44 
45 } // namespace Experimental
46 } // namespace ROOT
47 
48 #endif
Namespace for new ROOT classes and functions.
Definition: TFoamSampler.h:19
TFitResult FitTo(const THist< DIMENSIONS, PRECISION, STAT... > &hist, const TFunction< DIMENSIONS > &func, std::array_view< double > paramInit)
Definition: TFit.hxx:39
TFunction(std::function< double(const std::array< double, DIMENSION > &, const std::array_view< double > &par)> func)
Definition: TFit.hxx:35