public double Eval(String prg1, String prg2)
 {
     EncogProgram expression1 = new EncogProgram(prg1);
     EncogProgram expression2 = new EncogProgram(prg2);
     CompareEncogProgram comp = new CompareEncogProgram();
     return comp.Compare(expression1, expression2);
 }
Exemple #2
0
 public double Eval(String prg1, String prg2)
 {
     EncogProgram expression1 = new EncogProgram(prg1);
     EncogProgram expression2 = new EncogProgram(prg2);
     CompareEncogProgram comp = new CompareEncogProgram();
     return comp.Compare(expression1, expression2);
 }
 /// <inheritdoc />
 public override double GetCompatibilityScore(IGenome genome1,
                                              IGenome genome2)
 {
     var comp = new CompareEncogProgram();
     double d = comp.Compare((EncogProgram) genome1,
                             (EncogProgram) genome2);
     return d;
 }
        /// <inheritdoc />
        public override double GetCompatibilityScore(IGenome genome1,
                                                     IGenome genome2)
        {
            var    comp = new CompareEncogProgram();
            double d    = comp.Compare((EncogProgram)genome1,
                                       (EncogProgram)genome2);

            return(d);
        }