Homec4science

Kendall Tau: avoid integer overflow

Authored by Johannes Schindelin <johannes.schindelin@gmx.de> on Jan 29 2014, 16:30.

Description

Kendall Tau: avoid integer overflow

Large n values can easily lead to n * (n - 1) / 2 to be larger than a
31-bit integer.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>

Details

Event Timeline

Johannes Schindelin <johannes.schindelin@gmx.de> committed R6269:37db684dbfba: Kendall Tau: avoid integer overflow (authored by Johannes Schindelin <johannes.schindelin@gmx.de>).Feb 11 2014, 02:29