Class RealLstsqSolver

java.lang.Object
org.flag4j.linalg.solvers.lstsq.LstsqSolver<Matrix,Vector>
org.flag4j.linalg.solvers.lstsq.RealLstsqSolver
All Implemented Interfaces:
LinearMatrixSolver<Matrix,Vector>, LinearSolver<Matrix>

public class RealLstsqSolver extends LstsqSolver<Matrix,Vector>

This class solves a linear system of equations Ax=b in a least-squares sense. That is, minimizes ||Ax-b||2 which is equivalent to solving the normal equations ATAx=ATb.

This is done efficiently using a QR decomposition.

  • Constructor Details

    • RealLstsqSolver

      public RealLstsqSolver()

      Constructs a least-squares solver to solve a system Ax=b in a least square sense.

      That is, minimizes ||Ax-b||2 which is equivalent to solving the normal equations ATAx=ATb.