/// <summary> /// Initializes a new instance of the <see cref="RBFHepler"/> class. /// </summary> /// <param name="rbf">The RBF.</param> /// <param name="n">The asynchronous.</param> /// <param name="m">The command.</param> public RBFHepler(RBF rbf, byte n, byte m) { this.rbf = rbf; this.n = n; this.h = m; this.m = m; this.G = new double[this.h]; this.W = this.GenerateMatrix(h, m); this.Y = new double[this.m]; this.D = new double[m]; this.MathExpect = new List<double[]>(3); }
/// <summary> /// Buttons the teach click. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> private void ButtonTeachClick(object sender, EventArgs e) { var container = GetVectorContainer( PicturesPath.PathToOriginalA + "1.bmp", PicturesPath.PathToOriginalA + "2.bmp", PicturesPath.PathToOriginalA + "3.bmp", PicturesPath.PathToOriginalB + "1.bmp", PicturesPath.PathToOriginalB + "2.bmp", PicturesPath.PathToOriginalB + "3.bmp", PicturesPath.PathToOriginalC + "1.bmp", PicturesPath.PathToOriginalC + "2.bmp", PicturesPath.PathToOriginalC + "3.bmp", new NeuronHelper() ); var rbf = new RBF( Double.Parse(textBoxAlpha.Text), Double.Parse(textBoxError.Text), Int32.Parse(textBoxTimeout.Text), container); helper = new RBFHepler(rbf, 100, 3); helper.Teach(); textBoxStatistics.Text += @"Network has been teached." + Environment.NewLine; textBoxStatistics.Text += @"Number of iterations: " + helper.NumberOfIterations + Environment.NewLine; this.ScrollTextBox(); }