classify

Function classify 

Source
pub fn classify(candidate: &Gesture, training_set: &[Gesture]) -> String
Expand description

Main function of the $P recognizer. Classifies a candidate gesture against a set of training samples. Returns the class of the closest neighbor in the training set.