public class AutoChefScoreCalculator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static int |
MAX_SCORE
Maximum value allowed for a score.
|
Constructor and Description |
---|
AutoChefScoreCalculator() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.Double> |
computeScore(java.util.List<java.lang.Double> priceList,
java.util.List<java.lang.Double> distancesList)
Compute a score based on the distance to a shop and the price of a grocery list.
|
private static final int MAX_SCORE
public static java.util.List<java.lang.Double> computeScore(java.util.List<java.lang.Double> priceList, java.util.List<java.lang.Double> distancesList)
priceList
- The list of the prices of the list itemsdistancesList
- The list of distances between the user and the shops