Esempio n. 1
0
 void updateCurvePoints()
 {
     for (int i = 0; i < CurvePoints.Length; i++)
     {
         double x = min + i * ((max - min) / numPoints);
         double y = CurveToFit.Function(x);
         CurvePoints[i].GetComponent <Transform>().position = new Vector3((float)(coordinateScale * x), (float)(coordinateScale * (float)y), 0);
     }
 }
Esempio n. 2
0
 void backpropagate()
 {
     for (int i = 0; i < 1; i++)
     {
         for (int j = 0; j < numPoints; j++)
         {
             double x = min + j * ((max - min) / numPoints);
             double y = CurveToFit.Function(x);
             net      = net.Backpropagate(new double[] { x }, new double[] { y });
             VNet.net = net;
             updateNetPoints();
         }
     }
 }