Ejemplo n.º 1
0
        private void buttonUseTestClass_Click(object sender, EventArgs e)
        {
            var classTest = new Estimator();

            richTextBoxIncoming.Text = "";
            richTextBoxResolve.Text  = "";

            double bestFunc = Math.Pow(10, 300);

            var better = classTest.DeviationCollections(new[]
            {
                754.23171986103057,
                142.85790967464447
            }, 30);

            //double[] readLeafs = ClassTest.Out_Constants[bestIndex];
            //richTextBoxResolve.Text += "Отклонение: " + BestFunc + "\rГенотип #" + bestIndex + "\rИтераций Н-М: " + ClassTest.Out_NM_Restarts[bestIndex];
            try
            {
                //for (int i = 0; i < readLeafs.Length; i++)
                //    richTextBoxResolve.Text += "\rЛист " + i + ": " + Math.Round(readLeafs[i], 3);
            }
            catch
            {
                //ignore
            }
        }