Constructs the specified number of clusters from the hierarchical linkage tree.

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

Syntax

C#
public ClusterSet CutTree(
	int k
)
Visual Basic (Declaration)
Public Function CutTree ( _
	k As Integer _
) As ClusterSet
Visual C++
public:
ClusterSet^ CutTree(
	int k
)

Parameters

k
Type: System..::.Int32
The number of clusters to form.

Return Value

A ClusterSet object that identifies the cluster into which each object was grouped. Cluster numbers are arbitrary, and zero-based.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentException Thrown if k is less than one or greater than N.

See Also