Instance class
An instance of data.
Example:
final a = Instance([0, 3], id: "A"),
b = Instance([4, 5], id: "B");
print(a.distanceFrom(b));
Properties
Methods
-
distanceFrom(
Location that) → num -
Returns the distance, as defined by distanceMeasure, between
this and
that
item.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reallocate(
List< Cluster> clusters) → void -
Associate this instance with the nearest cluster
in
clusters
. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited