Class FitLineParametricSvd_F64

java.lang.Object
georegression.fitting.line.FitLineParametricSvd_F64

public class FitLineParametricSvd_F64 extends Object
Fits a LineParametric2D_F64 to a set of points by minimizing algebraic error. Points are normalized to have zero mean and a stdev of 1 along each axis. Then the slope is found as the nullspace using SVD.
  • Field Details

    • solver

      public org.ejml.interfaces.SolveNullSpace<org.ejml.data.DMatrixRMaj> solver
  • Constructor Details

    • FitLineParametricSvd_F64

      public FitLineParametricSvd_F64()
  • Method Details

    • fit

      public boolean fit(List<Point2D_F64> points, LineParametric2D_F64 line)
      Fits a line to the points
      Parameters:
      points - Set of points being fit
      line - (Output) best fit line
      Returns:
      true if successful