Interface ISparseVectorApproximator
-
- All Known Implementing Classes:
LARS_LassoCoeffVectorApproximator
,LARS_LassoSparseMatrixApproximator
public interface ISparseVectorApproximator
Interface for objects that do a sparse vecor approximation such that it computes x, such that b = Ax using some method- Author:
- Dustin Kempton, Data Mining Lab, Georgia State University
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
solve(double[] b, smile.math.matrix.DenseMatrix A, double[] x)
Computes x, such that b = Ax using some method.void
solve(double[] b, smile.math.matrix.DenseMatrix A, smile.math.matrix.DenseMatrix AtA, double[] x)
Computes x, such that b = Ax using some method.
-
-
-
Method Detail
-
solve
void solve(double[] b, smile.math.matrix.DenseMatrix A, double[] x) throws VectorDimensionMismatch, MatrixDimensionMismatch
Computes x, such that b = Ax using some method.- Parameters:
b
- vector on LHS of equationA
- Matrix A to use in the solutionx
- vector to compute and return- Throws:
VectorDimensionMismatch
- If there is some sort of internal error.MatrixDimensionMismatch
- When there is an error
-
solve
void solve(double[] b, smile.math.matrix.DenseMatrix A, smile.math.matrix.DenseMatrix AtA, double[] x) throws VectorDimensionMismatch, MatrixDimensionMismatch
Computes x, such that b = Ax using some method.- Parameters:
b
- vector on LHS of equationA
- Matrix A to use in the solutionAtA
- Matrix AtA to use in the solution, is the Gram matrix of A.x
- vector to compute and return- Throws:
VectorDimensionMismatch
- If there is some sort of internal error.MatrixDimensionMismatch
- When there is an error
-
-