public double Calculate(TreeChromosome c) { return Func(c) * Weight; }
private static double GetReciprocalError(TreeChromosome tc, double[] answers) { var lambda = _alg.GetLambda(tc); return BulldozerSolutions.GetNumericDistance(answers, _dataSet.Args.Select(e => lambda(e))); }
private static string GetTag(TreeChromosome c) { var historyTag = c.HistoryTag; var metrics = c.Metrics.Aggregate(string.Empty, (s, m) => s + " " + m); return string.Format("{0}\t{1}", historyTag, metrics); }
private static bool ExceptCondition(TreeChromosome c) { return c.Age > TolerateAge && c.Metrics[0] < EvalThreshold && _alg.Bank.Count(x => Math.Abs(x.Metrics[0] - c.Metrics[0]) < EvalEquiv) != 0; }