dot-color_fitness: Fitness function

Description Usage Arguments Value

Description

Equation 7, used in the genetic algorithm

Usage

1
.color_fitness(new_chromosome, old_chromosome, contiguity_matrix, pal_size = 6)

Arguments

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

Value

A fitness score


tsostarics/ftpals documentation built on Dec. 23, 2021, 12:59 p.m.