HierarchicalClusterAnalysis.GetClusterPartition Method

Definition

Namespace: Numerics.NET.Statistics.Multivariate
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

Overload List

GetClusterPartition(Double) Returns the partition of the data into the specified number of clusters.
GetClusterPartition(Int32) Returns the partition of the data into the specified number of clusters.

GetClusterPartition(Double)

Returns the partition of the data into the specified number of clusters.
C#
public HierarchicalClusterCollection GetClusterPartition(
	double distanceThreshold
)

Parameters

distanceThreshold  Double
The distance above which clusters are not merged.

Return Value

HierarchicalClusterCollection
A HierarchicalClusterCollection.

Exceptions

ArgumentOutOfRangeException

distanceThreshold is less than zero.

GetClusterPartition(Int32)

Returns the partition of the data into the specified number of clusters.
C#
public HierarchicalClusterCollection GetClusterPartition(
	int numberOfClusters
)

Parameters

numberOfClusters  Int32
The number of clusters to return.

Return Value

HierarchicalClusterCollection
A HierarchicalClusterCollection.

Exceptions

ArgumentOutOfRangeException

numberOfClusters is less than one or greater than the number of observations.

See Also