factorie/factorie — pull request #210 by strubell (2014-09-19 15:51:56+00:00)
Title: Add max2 method to DoubleSeq

Convenient method for getting the max two values of a DoubleSeq. This can be done with existing maxIndex2, but when called frequently this will be a little faster since the values already have to be looked up to get the indices of the max two values. Also the convenience is good for avoiding silly mistakes.