class MoreMath::LinearRegression

def residues

domain and image.
Returns the residues of this linear regression in relation to the given
def residues
  result = []
  @domain.zip(@image) do |x, y|
    result << y - (@a * x + @b)
  end
  result
end