Calendar calendar = Calendar.getInstance();
final int year = calendar.get(Calendar.YEAR);
final int month = calendar.get(Calendar.MONTH);
final int day = MapUtils.random.nextInt(28)+1;
final int hour = MapUtils.random.nextInt(24);
final AttributesMap attributes = AttributesMap.newHashMap();
attributes.put("weight", weight);
attributes.put("height", height);
attributes.put("timeOfArrival-year", year);
attributes.put("timeOfArrival-monthOfYear", month);
attributes.put("timeOfArrival-dayOfMonth", day);
attributes.put("timeOfArrival-hourOfDay", hour);
instances.add(new InstanceImpl(attributes, bmiHealthyInteger(weight, height)));
}
return instances;
}