HyperNEATBoxes.TrialEvaluation.Accumulate C# (CSharp) 메소드

Accumulate() 공개 메소드

public Accumulate ( double distance, double range ) : void
distance double
range double
리턴 void
        public void Accumulate(double distance, double range)
        {
            this.AccDistance += distance;
            this.AccRange += range;
        }

Usage Example

예제 #1
0
        public double CalculateScore(IMLMethod phenotype)
        {
            BoxTrialCase    test = new BoxTrialCase(new Random());
            TrialEvaluation eval = new TrialEvaluation(phenotype, test);

            for (int i = 0; i < 3; i++)
            {
                for (int j = 0; j < 25; j++)
                {
                    IntPair targetPos = eval.Test.InitTestCase(i);
                    IntPair actualPos = eval.Query(this.resolution);

                    eval.Accumulate(
                        CalcRealDistanceSquared(targetPos, actualPos),
                        Math.Max(0.0, eval.MaxActivation - eval.MinActivation));
                }
            }

            return(eval.CalculateFitness());
        }
All Usage Examples Of HyperNEATBoxes.TrialEvaluation::Accumulate