KMeansCluster

References
Represents an immutable k-means cluster associated with a sample set.

Constructors

KMeansCluster

#
Create a new k-means cluster.
public KMeansCluster(
parentSet,
Sample set associated with this cluster.
mean,
Mean for this cluster.
indices
Sample indices contained within this cluster.
)

Properties

Count

#
Gets the number of samples associate with this cluster.
public int Count { get; }

Description

#
Gets a description of this object type.
public string Description { get; }
Description

Dimensionality

#
Gets the dimensionality of this object.
public int Dimensionality { get; }
Dimensionality

Indices

#
Iterate over all sample indices in this cluster.
public IEnumerable<int> Indices { get; }

Mean

#
Gets the mean for this cluster.
public PointN Mean { get; }

ParentSet

#
Gets the sample set associated with this cluster.
public ISampleSet ParentSet { get; }

Methods

Equals

#
Indicates whether the current object is equal to another object of the same type.
public bool Equals(
other
An object to compare with this object.
)
true if the current object is equal to the other parameter; otherwise, false.

Equals

#
Determines whether the specified object is equal to the current object.
public override bool Equals(
obj
The object to compare with the current object.
)
true if the specified object is equal to the current object; otherwise, false.
Object.Equals

GetHashCode

#
Serves as the default hash function.
public override int GetHashCode()
A hash code for the current object.

ToString

#
Returns a string that represents the current object.
public override string ToString()
A string that represents the current object.
Object.ToString