Returns a new point chart plotting the given clusters.

Namespace:  CenterSpace.NMath.Charting.Microsoft
Assembly:  NMathStatsChartMicrosoft (in NMathStatsChartMicrosoft.dll) Version: 3.4.0.0

Syntax

C#
public static Chart ToChart(
	ClusterSet clusters,
	DoubleMatrix data,
	int xColIndex,
	int yColIndex
)
Visual Basic (Declaration)
Public Shared Function ToChart ( _
	clusters As ClusterSet, _
	data As DoubleMatrix, _
	xColIndex As Integer, _
	yColIndex As Integer _
) As Chart
Visual C++
public:
static Chart^ ToChart(
	ClusterSet^ clusters, 
	DoubleMatrix^ data, 
	int xColIndex, 
	int yColIndex
)

Parameters

clusters
Type: CenterSpace.NMath.Stats..::.ClusterSet
The cluster assignments.
data
Type: CenterSpace.NMath.Core..::.DoubleMatrix
A matrix of data. Each row in the matrix represents an object that was clustered.
xColIndex
Type: System..::.Int32
The index of the matrix column containing the x data.
yColIndex
Type: System..::.Int32
The index of the matrix column containing the y data.

Return Value

A new chart.

Remarks

Instances of class ClusterSet are created by ClusterAnalysis, KMeanClustering, and NMFClustering objects and cannot be constructed independently.
Objects are shown plotted in the specified x,y plane, colored according to their cluster assignment.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.IndexOutOfRangeExceptionThrown if either column index is outside the range of the columns of the given data matrix.

See Also