Description Usage Arguments Value Examples
Given an organism ran in the Game of Life. Evaluate it's fitness based on a fitness-function.
1 | Fitness(inOrg, fun = "max_x")
|
inOrg |
The input organism-object |
fun |
A fitness-evaluation function to be applied to each organism |
fit A numeric vector of the fitness of each organism
1 2 3 4 | organism_fitness <- Fitness(glider, "max_x")
# There is a wrapper function to apply to `populations` directly
gliders_G0@fitness <- popFitness(gliders_G0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.