final GenericSequenceStatistics ss = new GenericSequenceStatistics(dimension);
/*@Size*/ int i;
for (i = 0; i<data.size(); i++) {
Array temp = new Array(dimension);
temp.fill(data.get(i));
ss.add(temp, weights.get(i));
}
Array calculated;
/*@Real*/ double expected, tolerance;