/*@Real*/ double expected, tolerance;
if (ss.samples() != data.size())
fail("SequenceStatistics<" + name + ">: "
+ "wrong number of samples\n"
+ " calculated: " + ss.samples() + "\n"
+ " expected: " + data.size());
expected = weights.accumulate(0.0);
if (ss.weightSum() != expected)
fail("SequenceStatistics<" + name + ">: "