Description Usage Arguments Value
Equation 7, used in the genetic algorithm
1 | .color_fitness(new_chromosome, old_chromosome, contiguity_matrix, pal_size = 6)
|
new_chromosome |
New binary chromosome |
old_chromosome |
Original binary chromosome from kmeans palette |
contiguity_matrix |
Matrix for comparisons for cj calculation |
pal_size |
Size of the palette |
A fitness score
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.