//shuffling
        public static List <FacialGesture> shuffle(List <FacialGesture> data)
        {
            Random random = new Random();

            for (int i = 0; i < data.Count; i++)
            {
                //generate random index
                int randomIndex = random.Next(data.Count);

                //swap with current index
                FacialGesture temp = data[i];
                data[i]           = data[randomIndex];
                data[randomIndex] = temp;
            }

            return(data);
        }
Beispiel #2
0
 public bool classify(FacialGesture pattern)
 {
     return(false);
 }