in reply to Issue on covariance calculation
Perl is fairly memory inefficient for this kind of mathematical calculation. Each scalar is represented internally by a data structure rather than just the number itself.
I suggest you look at PDL. C.f The Perl Data Language (PDL): A Quick Reference Guide
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
|
|---|