Ticket #203 (closed defect)

Opened 15 years ago

Last modified 15 years ago

Error in Correlation Function

Reported by: williams Owned by: williams
Priority: major Milestone:
Component: williams/science.plt Keywords:
Cc: p.c.lane@… Version: 3.8
Racket Version: 4.2.1

Description

My PhD student, Pam Green, is using your science collection for some statistical analysis, but found an error when computing 'correlation'. On looking at the code (from planet today), it appears the error is on lines 512 and 513 of statistics.ss. The code is:

(+ mean-x (/ (delta-x (+ i 1.0))))
(+ mean-y (/ (delta-y (+ i 1.0))))))))))

and it should be:

(+ mean-x (/ delta-x (+ i 1.0)))
(+ mean-y (/ delta-y (+ i 1.0)))))))))

Change History

Changed 15 years ago by williams

  • status changed from new to closed

Fixed in V3.9 and released to PLaneT. Also added correlation to the test/examples.

Note: See TracTickets for help on using tickets.