KMeansInitializers class
A collection of methods for calculating initial means.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromArray(
List< List< means) → KMeansInitializerdouble> > -
Returns a cluster initializer function that simply returns
means
. -
kMeansPlusPlus(
List< List< points, List<double> >int> ignoredDims, int k, int seed) → List<List< double> > - Returns an initial set of k means initialized according to the k-means++ algorithm: https://en.wikipedia.org/wiki/K-means%2B%2B
-
random(
List< List< points, List<double> >int> ignoredDims, int k, int seed) → List<List< double> > -
Returns an initial set of
k
cluster centers randomly selected frompoints
.