Package org.dulab.javanmf.algorithms
Class NonNegativeLeastSquares
java.lang.Object
org.dulab.javanmf.algorithms.NonNegativeLeastSquares
public class NonNegativeLeastSquares
extends java.lang.Object
This class solves the non-negative least squares problem using the active set method.
See R. Bro and S.D. Jong "A FAST NON-NEGATIVITY-CONSTRAINED LEAST SQUARES ALGORITHM"
-
Constructor Summary
Constructors Constructor Description NonNegativeLeastSquares()
-
Method Summary
Modifier and Type Method Description void
solve(org.ejml.data.DMatrixRMaj matrixX, org.ejml.data.DMatrixRMaj matrixZ, org.ejml.data.DMatrixRMaj matrixD)
Finds matrix D such that D = argmin || X - Z x D ||^2
-
Constructor Details
-
NonNegativeLeastSquares
public NonNegativeLeastSquares()
-
-
Method Details
-
solve
public void solve(org.ejml.data.DMatrixRMaj matrixX, org.ejml.data.DMatrixRMaj matrixZ, org.ejml.data.DMatrixRMaj matrixD)Finds matrix D such that D = argmin || X - Z x D ||^2- Parameters:
matrixX
- matrix XmatrixZ
- matrix ZmatrixD
- initial value of matrix D
-