powered by
Fitness function that calculates the number of 1s in each individual
maxone(x, ...)
A vector
Further arguments passed to or from other methods.
Number of 1s
maxone1, maxone2, minone
maxone1
maxone2
minone
# NOT RUN { C2 = c(1, 1, 1, 0, 1, 0, 0, 0) maxone(C2) C3 = c(1, 1, 1, 1, 1, 1, 1, 1) maxone(C3) # }
Run the code above in your browser using DataLab