Пример #1
0
 public void MetricToOther(Iris iris)
 {
     for (int i = 0; i < this.Parameters.Length; ++i)
     {
         Metric += Math.Pow(Parameters[i] - iris.Parameters[i], 2);
     }
     Metric = Math.Sqrt(Metric);
 }
Пример #2
0
        int IComparable.CompareTo(object obj)
        {
            Iris ir = obj as Iris;

            return(this.Metric.CompareTo(ir.Metric));
        }