evaluation

fun <V, F> CellEvolveScope<V, F>.evaluation(compareWithSecondChild: Boolean = true, fitnessFunction: (V) -> F = this.fitnessFunction)

Evaluation stage for CellEvolveScope.cell.

Parameters

compareWithSecondChild

if true calculates second child located in CellEvolveScope.neighbors by index 0 and set it to CellEvolveScope.cell if second child fitness is better than current CellEvolveScope.cell.

fitnessFunction

fitnessFunction for evaluation stage