Class LinearInverseProblem
java.lang.Object
dk.alexandra.fresco.stat.linearalgebra.LinearInverseProblem
- All Implemented Interfaces:
dk.alexandra.fresco.framework.builder.Computation<ArrayList<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>>,dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>
public class LinearInverseProblem extends Object implements dk.alexandra.fresco.framework.builder.Computation<ArrayList<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>>,dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>
Solve a linear inverse problem, eg. find an x such that Ax = b where A is an
mxn-matrix and b is an n-dimensional vector. If a system is overdetermined
(m ≥ n), the computation will find the x minimising ||Ax -
b||.
-
Constructor Summary
Constructors Constructor Description LinearInverseProblem(dk.alexandra.fresco.lib.common.collections.Matrix<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>> a, ArrayList<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>> b)LinearInverseProblem(dk.alexandra.fresco.lib.common.collections.Matrix<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>> a, ArrayList<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>> b, dk.alexandra.fresco.framework.util.Pair<dk.alexandra.fresco.lib.common.collections.Matrix<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>>,dk.alexandra.fresco.lib.common.collections.Matrix<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>>> qr) -
Method Summary
Modifier and Type Method Description dk.alexandra.fresco.framework.DRes<ArrayList<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>>>buildComputation(dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric builder)
-
Constructor Details
-
LinearInverseProblem
public LinearInverseProblem(dk.alexandra.fresco.lib.common.collections.Matrix<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>> a, ArrayList<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>> b) -
LinearInverseProblem
public LinearInverseProblem(dk.alexandra.fresco.lib.common.collections.Matrix<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>> a, ArrayList<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>> b, dk.alexandra.fresco.framework.util.Pair<dk.alexandra.fresco.lib.common.collections.Matrix<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>>,dk.alexandra.fresco.lib.common.collections.Matrix<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>>> qr)
-
-
Method Details
-
buildComputation
public dk.alexandra.fresco.framework.DRes<ArrayList<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>>> buildComputation(dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric builder)- Specified by:
buildComputationin interfacedk.alexandra.fresco.framework.builder.Computation<ArrayList<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>>,dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>
-