static void Main(string[] args) { int windowSize = 60; AngleGestureTest a = new AngleGestureTest(windowSize); a.Angles = new List <float> { 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11 }; List <float> anglesEntry = new List <float> { 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11 }; //a.Angles = new List<float> { 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11};//, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11 }; //List<float> anglesEntry = new List<float> { 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11};//, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11 }; float Epsilon = 0.035f; float MinimalScore = 0.80f; float MinimalSize = 0.1f; Console.WriteLine("TESTING ANGLE GESTURE"); a.Match(anglesEntry, Epsilon, MinimalScore, MinimalSize); // Console.WriteLine("Find Peaks returns", a.findPeakPositions(anglesEntry)); }
static void Main(string[] args) { int windowSize = 60; AngleGestureTest a = new AngleGestureTest(windowSize); a.Angles = new List<float> { 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11 }; List<float> anglesEntry = new List<float> { 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11 }; //a.Angles = new List<float> { 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11};//, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11 }; //List<float> anglesEntry = new List<float> { 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11};//, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11, 22, 33, 44, 55, 66, 77, 78, 87, 66, 55, 44, 33, 22, 11 }; float Epsilon = 0.035f; float MinimalScore = 0.80f; float MinimalSize = 0.1f; Console.WriteLine("TESTING ANGLE GESTURE"); a.Match(anglesEntry, Epsilon, MinimalScore, MinimalSize); // Console.WriteLine("Find Peaks returns", a.findPeakPositions(anglesEntry)); }