Class KMeansCluster
Represents a vector cluster for the K-Means Clustering Algorithm.
Inheritance
System.Object
KMeansCluster
Assembly: Paramdigma.Core.dll
Syntax
public class KMeansCluster : IList<VectorNd>
Properties
|
Improve this Doc
View Source
Count
Gets the amount of clusters.
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
IsReadOnly
Gets a value indicating whether the cluster is readOnly.
Declaration
public bool IsReadOnly { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Item[Int32]
Gets or sets the vector at the given index.
Declaration
public VectorNd this[int index] { get; set; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
Index of the desired object.
|
Property Value
Methods
|
Improve this Doc
View Source
Add(VectorNd)
Add a new vector to the cluster.
Declaration
public void Add(VectorNd item)
Parameters
Type |
Name |
Description |
VectorNd |
item |
Vector to add.
|
|
Improve this Doc
View Source
Average()
Computes the average of this cluster.
Declaration
public VectorNd Average()
Returns
Type |
Description |
VectorNd |
Average vector of the current cluster.
|
|
Improve this Doc
View Source
Clear()
Declaration
|
Improve this Doc
View Source
Contains(VectorNd)
Declaration
public bool Contains(VectorNd item)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
CopyTo(VectorNd[], Int32)
Declaration
public void CopyTo(VectorNd[] array, int arrayIndex)
Parameters
Type |
Name |
Description |
VectorNd[] |
array |
|
System.Int32 |
arrayIndex |
|
|
Improve this Doc
View Source
GetEnumerator()
Declaration
public IEnumerator<VectorNd> GetEnumerator()
Returns
|
Improve this Doc
View Source
IndexOf(VectorNd)
Declaration
public int IndexOf(VectorNd item)
Parameters
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Insert(Int32, VectorNd)
Declaration
public void Insert(int index, VectorNd item)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
VectorNd |
item |
|
|
Improve this Doc
View Source
Remove(VectorNd)
Declaration
public bool Remove(VectorNd item)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
RemoveAt(Int32)
Declaration
public void RemoveAt(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|