def testSystem3():
	data = loadData(filename = '../data.txt')
	
	gestures, maybeGestures = realtimeGR1.extractGesturesAndMaybe1(data)
	
	examples = gestures[0][1:]
	maybeExamples = maybeGestures[0]
	#examples = [(g, 1.0) for g in gestures[0][1:]]#reformat and remove the first one
	for ex in examples:	print [round(e[0], 2) for e in ex]
def testGestureRecognizer():
	data = loadData(filename = '../data2.txt')
	gesturesDict, maybeGesturesDict = realtimeGR1.extractGesturesAndMaybe1(data)
	gestures = gesturesDict[0]
	maybeGestures = maybeGesturesDict[0]
	#print maybeGestures
	nonGestures = realtimeGR1.extractNonGestures(data)
	
	
	
	print 'lengths:', len(gestures), len(maybeGestures), len(nonGestures)
	
	gr = gestureRecognizer.GestureRecognizer(gestures, maybeGestures, nonGestures)
	
	print 'dividing line: %s' % (gr.dividingLine)