C# Класс Encog.ML.Kmeans.KMeansClustering

This class performs a basic K-Means clustering. This class can be used on either supervised or unsupervised data. For supervised data, the ideal values will be ignored. http://en.wikipedia.org/wiki/Kmeans
Наследование: IMLClustering
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CalculateEuclideanDistance ( Centroid c, IMLData data ) : double

Calculate the euclidean distance between a centroid and data.

Iteration ( ) : void

Perform a single training iteration.

Iteration ( int count ) : void

The number of iterations to perform.

KMeansClustering ( int k, IMLDataSet theSet ) : System

Construct the K-Means object.

NumClusters ( ) : int

Приватные методы

Метод Описание
CalcWcss ( ) : void

Calculate the within-cluster sum of squares (WCSS).

GetMaxValue ( int index ) : double

Get the maximum, over all the data, for the specified index.

GetMinValue ( int index ) : double

Get the minimum, over all the data, for the specified index.

SetInitialCentroids ( ) : void

Setup the initial centroids.

Описание методов

CalculateEuclideanDistance() публичный статический Метод

Calculate the euclidean distance between a centroid and data.
public static CalculateEuclideanDistance ( Centroid c, IMLData data ) : double
c Centroid The centroid to use.
data IMLData The data to use.
Результат double

Iteration() публичный Метод

Perform a single training iteration.
public Iteration ( ) : void
Результат void

Iteration() публичный Метод

The number of iterations to perform.
public Iteration ( int count ) : void
count int
Результат void

KMeansClustering() публичный Метод

Construct the K-Means object.
public KMeansClustering ( int k, IMLDataSet theSet ) : System
k int The number of clusters to use.
theSet IMLDataSet The dataset to cluster.
Результат System

NumClusters() публичный Метод

public NumClusters ( ) : int
Результат int