~ removed unusable variables

This commit is contained in:
Johannes Theiner 2019-05-16 15:45:58 +02:00
parent ad0e2040ee
commit 41ae0c46e7
1 changed files with 2 additions and 7 deletions

View File

@ -36,16 +36,11 @@ public class WeekOverview implements Analysis<Map<String, Map.Entry<Double, Inte
return result;
}
result = new HashMap<>();
int dayIndex = Attribute.SHOPPING_DAY;
int amountIndex = Attribute.PURCHASE_AMOUNT;
int startArticles = Attribute.POWER_TOOLS;
int endArticles = Attribute.GARDENING_TOOLS + 1;
for (int i = 0; i < instances.numInstances(); i++) {
Instance instance = instances.get(i);
double amount = instance.value(amountIndex);
String day = instance.stringValue(dayIndex);
double amount = instance.value(Attribute.PURCHASE_AMOUNT);
String day = instance.stringValue(Attribute.SHOPPING_DAY);
if (!result.containsKey(day)) {