Пример #1
0
 public void FusionAvec(Classe c2)
 {
     foreach (Neurone n in c2.GetNeurones())
     {
         ListNeurones.Add(n);
     }
 }
Пример #2
0
        private double CalculeDistInterClasse(Classe c1, Classe c2)
        {
            double bestdist = 1000;

            foreach (Neurone n1 in c1.GetNeurones())
            {
                foreach (Neurone n2 in c2.GetNeurones())
                {
                    double dist = n1.DistInterNeurone(n2);
                    if (dist < bestdist)
                    {
                        bestdist = dist;
                    }
                }
            }
            return(bestdist);
        }