Exemplo n.º 1
0
def meanarray(y_axis):
    mean = []
    meanval = findMean(y_axis)
    for y in y_axis:
        mean.append(float(meanval))
    return mean    
Exemplo n.º 2
0
series = y_axis
maxtab, mintab = peakdet(series,0.1)
basel = findMean(series)



x_axis = asarray(x_axis)
y_axis = asarray(y_axis)
mean = []
cut = []
cutx = []
cuty=[]

for y in y_axis:
	mean.append(float(basel))

highcut = basel + ((variance-basel)/15)
lowcut = basel - ((variance-basel)/15)

for a in range (0,len(two)):
	if two[a][1] > lowcut and two[a][1] < highcut:
		cut.append(two[a])


for m in range (0, len(cut)):
	cutx.append(cut[m][0])
	cuty.append(cut[m][1])

base = peakutils.baseline(y_axis, 2)
cutbase = peakutils.baseline(asarray(cuty), 2)