I have a sample with several variables. I want to reconize leaves. So i've collected needed parameters(features), such as ratio of width and height, ratio of bounded rectangle area and a leaf area etc. All this data must be given to knn algorithm for training and test. Can anybody write a simple example?