Summary

statistics tests fail

Metadata

Attachments

Description

The statistics tests started failing after the release of version 2.8 of the numbers egg, see http://tests.call-cc.org/master/linux/x86/2012/05/06/salmonella-report/test/statistics.html for the earliest failure.

Unfortunately the spearman rank coefficient error is due to the use of the ~F format specifier. Numbers now tries harder to produce exact results for sqrt, which means that the number is not a flonum anymore, but a rational number. The "format" egg isn't aware of the numbers egg, so it gives an error (it doesn't understand that the ratnum type is a number). See the attached patch for a quick and dirty fix.

If you prefer returning exact numbers where possible, you could either convert the values to inexact only where they're printed (and change the value in the "check" call to be a fractional) or you could change the format call to use ~A, which does print the number correctly (it'll use the core number->string which is overwritten by the numbers egg to do the right thing) and exactly.

Changes and comments

[2012-05-13 15:49:15 UTC] sjamaan attached inexacts.patch (description=Convert numbers to inexact in spearman-rank-correlation function)

[2015-09-21 15:06:13 UTC] sjamaan changed status from new to closed

[2015-09-21 15:06:13 UTC] sjamaan set resolution to wontfix

[2015-09-21 15:06:13 UTC] sjamaan wrote:

Unmaintained egg