Added computation of linear regression from measurements from db
-third power makes it produce NaNs; need to normalize before doing regression