xboa
Main Page
Namespaces
Classes
Files
File List
xboa
algorithms
smoothing
_fit_smoothing.py
Go to the documentation of this file.
1
import
copy
2
import
ROOT
3
4
class
FitSmoothing
(object):
5
def
__init__
(self, fit_function):
6
self.
fit
= fit_function
7
8
def
smooth
(self, data):
9
graph = ROOT.TGraph(len(data))
10
for
i, data_y
in
enumerate(data):
11
graph.SetPoint(i, i, data_y)
12
graph.Fit(self.
fit
)
13
data_out = [self.fit.Eval(i)
for
i
in
range(len(data))]
14
return
data_out
15
xboa.algorithms.smoothing._fit_smoothing.FitSmoothing.fit
fit
Definition:
_fit_smoothing.py:6
xboa.algorithms.smoothing._fit_smoothing.FitSmoothing.__init__
def __init__
Definition:
_fit_smoothing.py:5
xboa.algorithms.smoothing._fit_smoothing.FitSmoothing.smooth
def smooth
Definition:
_fit_smoothing.py:8
xboa.algorithms.smoothing._fit_smoothing.FitSmoothing
Definition:
_fit_smoothing.py:4
Generated on Fri Mar 6 2015 10:37:20 for xboa by
1.8.6