22 lines
405 B
Python
22 lines
405 B
Python
run("cpython/wrapper")
|
|
|
|
|
|
|
|
x=[1,2,7,20,100,16,4,3,2]
|
|
|
|
y=range(len(x))
|
|
|
|
[off, amp, com, sigma] = gfitoff(x, y)
|
|
|
|
|
|
'''
|
|
p = plot(None, title = 'Fit')[0]
|
|
from mathutils import Gaussian
|
|
from plotutils import plot_line, plot_function
|
|
fitted_function = Gaussian(amp, com, sigma)
|
|
ax = frange(0, 10, 0.1, True)
|
|
plot_function(p, fitted_function, "Gauss Fit", ax, color=Color.GREEN)
|
|
'''
|
|
|
|
|
|
print [off, amp, com, sigma] |