KMeans Cluster Analysis Constructor
Definition
Namespace: Extreme.Statistics.Multivariate
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
KMeans | Constructs a new KMeansClusterAnalysis. |
KMeans | Constructs a new KMeansClusterAnalysis. |
KMeans | Constructs a new KMeansClusterAnalysis. |
KMeans | Constructs a new KMeansClusterAnalysis. |
KMeans | Constructs a new KMeansClusterAnalysis. |
KMeansClusterAnalysis(IDataFrame, Int32)
Constructs a new KMeansClusterAnalysis.
public KMeansClusterAnalysis(
IDataFrame dataFrame,
int numberOfClusters
)
Parameters
- dataFrame IDataFrame
- A data frame containing the data for the analysis.
- numberOfClusters Int32
- The number of clusters.
Exceptions
ArgumentNullException | dataFrame is null. |
KMeansClusterAnalysis(IEnumerable<Vector<Double>>, Int32)
Constructs a new KMeansClusterAnalysis.
public KMeansClusterAnalysis(
IEnumerable<Vector<double>> variables,
int numberOfClusters
)
Parameters
Exceptions
ArgumentNullException | variables is null. |
KMeansClusterAnalysis(Matrix<Double>, Int32)
Constructs a new KMeansClusterAnalysis.
public KMeansClusterAnalysis(
Matrix<double> data,
int numberOfClusters
)
Parameters
Exceptions
ArgumentNullException | data is null. |
KMeansClusterAnalysis(IDataFrame, String, Int32)
Constructs a new KMeansClusterAnalysis.
public KMeansClusterAnalysis(
IDataFrame dataFrame,
string formula,
int numberOfClusters
)
Parameters
- dataFrame IDataFrame
- A data frame containing the data for the analysis.
- formula String
- A formula that specifies the features in the model.
- numberOfClusters Int32
- The number of clusters.
Exceptions
ArgumentNullException | dataFrame is null.
-or- formula is null. |
FormatException | The formula is not in the correct format. |
KMeansClusterAnalysis(IDataFrame, String[], Int32)
Constructs a new KMeansClusterAnalysis.
public KMeansClusterAnalysis(
IDataFrame dataFrame,
string[] variableNames,
int numberOfClusters
)
Parameters
- dataFrame IDataFrame
- A data frame containing the data for the analysis.
- variableNames String[]
- An array containing the names of the variables.
- numberOfClusters Int32
- The number of clusters.
Exceptions
ArgumentNullException | dataFrame is null.
-or- variableNames is null. |