示例#1
0
 public void DrawMesh(int X, int Y)
 {
     for (int index1 = 0; index1 < this.crqUrCA6J; ++index1)
     {
         for (int index2 = 0; index2 < this.R00zPKwYO; ++index2)
         {
             TKohonenNeuron tkohonenNeuron1 = this.C4gBBYR9YW[index1, index2];
             if (index1 < this.crqUrCA6J - 1)
             {
                 TKohonenNeuron tkohonenNeuron2 = this.C4gBBYR9YW[index1 + 1, index2];
                 new TLine(tkohonenNeuron1.GetWeight(X).Weight, tkohonenNeuron1.GetWeight(Y).Weight, tkohonenNeuron2.GetWeight(X).Weight, tkohonenNeuron2.GetWeight(Y).Weight)
                 {
                     Color = Color.Blue
                 }.Draw();
             }
             if (index2 < this.R00zPKwYO - 1)
             {
                 TKohonenNeuron tkohonenNeuron2 = this.C4gBBYR9YW[index1, index2 + 1];
                 new TLine(tkohonenNeuron1.GetWeight(X).Weight, tkohonenNeuron1.GetWeight(Y).Weight, tkohonenNeuron2.GetWeight(X).Weight, tkohonenNeuron2.GetWeight(Y).Weight)
                 {
                     Color = Color.Blue
                 }.Draw();
             }
             new TMarker(tkohonenNeuron1.GetWeight(X).Weight, tkohonenNeuron1.GetWeight(Y).Weight, 20.0)
             {
                 Color = Color.Red
             }.Draw();
         }
     }
 }