protected final double[] probabilities(
		final Seq<Phenotype<G, C>> population,
		final int count,
		final Optimize opt
	) {
		return requireNonNull(opt) == Optimize.MINIMUM
			? _reverter.apply(probabilities(population, count))
			: probabilities(population, count);
	}
This method takes the probabilities from the
{@link #probabilities(Seq, int)} method and inverts it if needed.

@param population The population.
@param count The number of phenotypes to select.
@param opt Determines whether the individuals with higher fitness values
       or lower fitness values must be selected. This parameter
       determines whether the GA maximizes or minimizes the fitness
       function.
@return Probability array.
jenetics/src/main/java/io/jenetics/ProbabilitySelector.java