Startup
This commit is contained in:
1 parent
ea51b9a231
commit
4182fe8d32
1 file changed
+2
-1
+2
-1
@@ -10,9 +10,10 @@ def fit(ydata, xdata = None, draw_plot = True):
|
||||
print "Max index:" + str(index_max),
|
||||
print " x:" + str(max_x),
|
||||
print " y:" + str(max_y)
|
||||
|
||||
print "Server"
|
||||
gaussians = fit_gaussians(ydata, xdata, [index_max,])
|
||||
(norm, mean, sigma) = gaussians[0]
|
||||
print "Server"
|
||||
if draw_plot:
|
||||
p = plot([ydata],["data"],[xdata], title="Fit" )[0]
|
||||
fitted_gaussian_function = Gaussian(norm, mean, sigma)
|
||||
|
||||
Reference in new issue
Block a user