added in linear regression machinery, extracts points from correct bands, still need to feed into machinery...
now takes points, performs linreg, and produces matrix of gains and offsets.