RANK: Simplify rank_sorted_file() with new function sum_weights().
authorBen Pfaff <blp@cs.stanford.edu>
Thu, 31 Jan 2013 05:19:53 +0000 (21:19 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Thu, 31 Jan 2013 05:19:53 +0000 (21:19 -0800)
commitd74d36ea1af6a6683fcc57997341c2b7421ee454
tree18eccf6744cd1efc2c72a43bbace470e44996c4d
parenta0454ef2df24d238bdfd68553462c82daf6776ae
RANK: Simplify rank_sorted_file() with new function sum_weights().

This makes the code easier to read and possibly even faster.
src/language/stats/rank.c