in reply to Data Regression Utility
Just a suggestion -- you might consider writing your OLS in matrix notation, and then using PDL to sling the matrices, rather than handling all the messy algebra scalar-wise. The matrix approach would also give you multivariate OLS for free, vs. just the single dimensional y=mx+b.
In Section
Cool Uses for Perl