Performs the NMF V ~ WH using the specified initial values for W and H.

Namespace:  CenterSpace.NMath.Stats
Assembly:  NMathStats (in NMathStats.dll) Version: 3.4.0.0

Syntax

C#
public bool Factor(
	DataFrame data,
	int k,
	DoubleMatrix w,
	DoubleMatrix h
)
Visual Basic (Declaration)
Public Function Factor ( _
	data As DataFrame, _
	k As Integer, _
	w As DoubleMatrix, _
	h As DoubleMatrix _
) As Boolean
Visual C++
public:
bool Factor(
	DataFrame^ data, 
	int k, 
	DoubleMatrix^ w, 
	DoubleMatrix^ h
)

Parameters

data
Type: CenterSpace.NMath.Stats..::.DataFrame
Data to factor.
k
Type: System..::.Int32
The rank of the factorization which is the number of columns in H.
w
Type: CenterSpace.NMath.Core..::.DoubleMatrix
Initial value for W.
h
Type: CenterSpace.NMath.Core..::.DoubleMatrix
Initial value for H.

Return Value

True if the algorithm converged.

Exceptions

ExceptionCondition
System..::.ArgumentExceptionThrown if k >= the number of columns in data, or if data, w, and h do not have compatible sizes.

See Also