In SQL, select 1/0 will result in NULL, not an error. If stddev is 0, then perhaps it will generates unexpected results.
If filtering it out using "where", it might cause problem with GROUP BY.
Work on simpletest, and then fix the problem.

Comments

danithaca’s picture

Version: 6.x-1.1 » 6.x-2.x-dev
Priority: Critical » Normal

This will not be fixed in the database implementation #481940: remove database implementation of the classical correlation-based algorithm. Still needs to be fixed for the memory implementation.

danithaca’s picture

Status: Active » Fixed

fixed as of #483102: Internalize NAN support to the Vector/Matrix class
if stddev==0, then the correlation would be unset.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.