Returns the value of the cost function for the non-negative factorization of V = WH. The cost function is minimized by the factorization.

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

Syntax

C#
public double Cost(
	DoubleMatrix V,
	DoubleMatrix W,
	DoubleMatrix H
)
Visual Basic (Declaration)
Public Function Cost ( _
	V As DoubleMatrix, _
	W As DoubleMatrix, _
	H As DoubleMatrix _
) As Double
Visual C++
public:
virtual double Cost(
	DoubleMatrix^ V, 
	DoubleMatrix^ W, 
	DoubleMatrix^ H
) sealed

Parameters

V
Type: CenterSpace.NMath.Core..::.DoubleMatrix
The non-negative matrix being factored.
W
Type: CenterSpace.NMath.Core..::.DoubleMatrix
First factor
H
Type: CenterSpace.NMath.Core..::.DoubleMatrix
Second factor

Return Value

The cost

Implements

INMFUpdateAlgorithm..::.Cost(DoubleMatrix, DoubleMatrix, DoubleMatrix)

See Also