Ticket #203 (closed defect)
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
Note: See
TracTickets for help on using
tickets.