Class SvdSolver
- java.lang.Object
-
- cern.accsoft.steering.aloha.calc.solve.matrix.AbstractMatrixSolver
-
- cern.accsoft.steering.aloha.calc.solve.matrix.svd.SvdSolver
-
- All Implemented Interfaces:
MatrixSolver,SvdSolverConfig,Solver,SolverConfig
public class SvdSolver extends AbstractMatrixSolver implements MatrixSolver, SvdSolverConfig
This is an implementation of the solver-interface, which uses SVD to calculate the inverse matrix
-
-
Constructor Summary
Constructors Constructor Description SvdSolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()the name of this solver.doublegetSvdThresholdFactor()voidsetSvdThresholdFactor(double svdThresholdFactor)MatrixSolverResultsolve(Jama.Matrix inMatrix, Jama.Matrix inVector, Jama.Matrix inVectorErrors)shall give the result: outVector = matrix^(-1) * inVector;-
Methods inherited from class cern.accsoft.steering.aloha.calc.solve.matrix.AbstractMatrixSolver
checkInputDimensions, toString
-
-
-
-
Method Detail
-
solve
public MatrixSolverResult solve(Jama.Matrix inMatrix, Jama.Matrix inVector, Jama.Matrix inVectorErrors) throws SolverException
Description copied from interface:MatrixSolvershall give the result: outVector = matrix^(-1) * inVector;- Specified by:
solvein interfaceMatrixSolver- Returns:
- the result
- Throws:
SolverException
-
setSvdThresholdFactor
public void setSvdThresholdFactor(double svdThresholdFactor)
- Specified by:
setSvdThresholdFactorin interfaceSvdSolverConfig- Parameters:
svdThresholdFactor- the svdThresholdFactor to set
-
getSvdThresholdFactor
public double getSvdThresholdFactor()
- Specified by:
getSvdThresholdFactorin interfaceSvdSolverConfig- Returns:
- the svdThresholdFactor
-
-