SampleApp.MainForm.btnCanvasClassify_Click C# (CSharp) Method

btnCanvasClassify_Click() private method

private btnCanvasClassify_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void btnCanvasClassify_Click(object sender, EventArgs e)
        {
            if (ksvm != null)
            {
                // Get the input vector drawn
                double[] input = canvas.GetDigit();

                // Classify the input vector
                int num;
                ksvm.Method = MulticlassComputeMethod.Elimination;
                double[] responses = ksvm.Probabilities(input, out num);

                // Set the actual classification answer 
                lbCanvasClassification.Text = num.ToString();

                // Create the bar graph to show the relative responses
                CreateBarGraph(graphClassification, responses);
            }
        }
MainForm