lib/linefit.rb
############################################################################
# Return the mean squared error
#
#  meanSquaredError = linefit.meanSqError
#
# The return value is undefined if the regression fails. If weights are
# input, the return value is the weighted mean squared error.
#
Return the mean squared error
meanSquaredError = linefit.meanSqError

The return value is undefined if the regression fails. If weights are
input, the return value is the weighted mean squared error.
Return the mean squared error meanSquaredError = linefit . meanSqError The return value is undefined if the regression fails . If weights are input the return value is the weighted mean squared error .
def meanSqError
      unless @meanSqError
         self.regress or return
         @meanSqError = sumSqErrors() / @numxy
      end
      return @meanSqError
   end
def meanSqError unless @meanSqError self . regress or return @meanSqError = sumSqErrors ( ) / @numxy end return @meanSqError end
Return the mean squared error
meanSquaredError = linefit.meanSqError
Return the mean squared error meanSquaredError = linefit . meanSqError