ROOT  6.06/09
Reference Guide
TFit.h
Go to the documentation of this file.
1 /// \file 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 is welcome!
6 
7 /*************************************************************************
8  * Copyright (C) 1995-2015, Rene Brun and Fons Rademakers. *
9  * All rights reserved. *
10  * *
11  * For the licensing terms see $ROOTSYS/LICENSE. *
12  * For the list of contributors see $ROOTSYS/README/CREDITS. *
13  *************************************************************************/
14 
15 #ifndef ROOT_TFit
16 #define ROOT_TFit
17 
18 #include <array>
19 #include <functional>
20 
21 #include "ROOT/RArrayView.h"
22 
23 namespace ROOT {
24 class TFitResult {
25 
26 };
27 
28 template <int DIMENSION, class PRECISION> class THist;
29 
30 template <int DIMENSION>
31 class TFunction {
32 public:
33  TFunction(std::function<double (const std::array<double, DIMENSION>&,
34  const std::array_view<double>& par)> func) {}
35 };
36 
37 template <int DIMENSION, class PRECISION>
40  std::array_view<double> paramInit){
41  return TFitResult();
42 }
43 
44 }
45 
46 #endif
double par[1]
Definition: unuranDistr.cxx:38
Namespace for new ROOT classes and functions.
Definition: ROOT.py:1
TFitResult FitTo(const THist< DIMENSION, PRECISION > &hist, const TFunction< DIMENSION > &func, std::array_view< double > paramInit)
Definition: TFit.h:38
TFunction(std::function< double(const std::array< double, DIMENSION > &, const std::array_view< double > &par)> func)
Definition: TFit.h:33
void function(const char *name_, T fun, const char *docstring=0)
Definition: RExports.h:159
double func(double *x, double *p)
Definition: stressTF1.cxx:213
Histogram class for histograms with DIMENSIONS dimensions, where each bin count is stored by a value ...
Definition: THist.h:31