Some selectors support maximization only, e.g., roulette wheel selector, or minimization (most others). This function computes a factor from -1, 1 for each objective to match supported selector optimization directions and the actual objectives of the task.
transformFitness(fitness, task, selector)
[matrix] Transformed / scaled fitness matrix.
[matrix] Matrix of fitness values with the fitness vector of individual i in the i-th column.
[ecr_optimization_task] Optimization task.
[ecr_selector] Selector object.