mathnet-numerics icon indicating copy to clipboard operation
mathnet-numerics copied to clipboard

Introduce Deming/Orthogonal regression

Open JesperGr opened this issue 2 years ago • 2 comments

Deming/Orthogonal regression, least-Squares fitting the points in the 2D dataset (x,y) to a line a*x + b*y + c = 0 For delta equal 1 (the default value), this is performing orthogonal regression, minimizing the sum of squared perpendicular distances from the data points to the regression line.

Discussed/suggested here: https://github.com/mathnet/mathnet-numerics/discussions/786

Questions:

  • Is Fit.Line2D a good name?
  • Where to put StandardLineToYxLine?

JesperGr avatar Jun 21 '23 20:06 JesperGr

  • Is Fit.Line2D a good name?

I think that Fit.Deming would be more appropriate. Line2D seems like it performs the "usual" least squares fitting

  • Where to put StandardLineToYxLine?

This is used purely for testing purposes, I think it is more appropriate in the testing class FitTests.StandardLineToYxLine

jkalias avatar Jun 24 '23 15:06 jkalias

I like the Line in the name, because it is very similar to the SimpleRegression. But I am fine with Deming as well, so I have updated the Fit.Line2D to Fit.Deming. And moved the StandardLineToYxLine to the FitTests - I will then just keep my own line tools alive.

JesperGr avatar Aug 08 '23 09:08 JesperGr