Class ReverseFitnessNormalizer

java.lang.Object
de.hybris.platform.warehousing.sourcing.fitness.normalize.impl.ReverseFitnessNormalizer
All Implemented Interfaces:
FitnessNormalizer

public class ReverseFitnessNormalizer extends Object implements FitnessNormalizer
Normalizes the fitness value by dividing it by the given total and multiplying by 100 to produce a percentage. Then subtracting that percentage from 100 to produce a reverse value. This is useful for when a smaller fitness value should be better than a large fitness value.

Example
normalize(5.0, 20.0); means (100 - ((5.0 / 20.0) * 100)) = 75