This commit is contained in:
gac-S_Changer
2018-04-23 08:18:18 +02:00
parent e48acd85b9
commit cdb602b7c7
20 changed files with 854 additions and 116 deletions

View File

@@ -57,4 +57,12 @@ def fit(ydata, xdata = None, draw_plot = True):
if draw_plot:
p.addMarker(max_x, None, "Max="+str(round(max_x,4)), Color.GRAY)
#print "Invalid gaussian fit: " + str(mean)
return (None, None, None)
return (None, None, None)
def enforce_monotonic(x):
epsilon = 1e-8
for i in range(len(x)-1):
if x[i+1]<=x[i]:
x[i+1] = x[i]+ epsilon
return x