Remove assertions which compare the sum of weights between passes. 20130101030509/pspp
authorJohn Darrington <john@darrington.wattle.id.au>
Mon, 31 Dec 2012 10:33:38 +0000 (11:33 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Mon, 31 Dec 2012 10:33:38 +0000 (11:33 +0100)
commit97f2fd8ca9f4a977ed055e145eb722a52e0e6cc7
treef41db16815a13bba6ce334a590b25070db7564af
parentd49a471a1fa405dd68d51ade4a4fed35b77cc41d
Remove assertions which compare the sum of weights between passes.

These asserted that the sum of case-weights of a dataset calculated
in one pass, was the same as that calculated in a second pass.
Algebraically this is correct.  However, for optimisation purposes,
it is sometimes desireable that the second pass occurs after the
data has been reordered.   If that happens, the sum of weights can
be slightly different due to floating point rounding errors.  This
happens particularly when the caseweights are fractional.
src/math/moments.c
src/math/percentiles.c
src/math/trimmed-mean.c