KDTree class
Properties
-
dimensions
→ List<String>
-
Return dimensions that was setted on Tree creation
no setter
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
height
→ int
-
Calculate height of K-d Tree
no setter
-
length
→ int
-
Calculate lenght of K-d Tree
no setter
-
metric
← Function?
-
Set the new metric function. This must be done after JSON deserialization since JSON can't serialize Function.
no getter
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
balanceFactor()
→ double
-
Calculate balance factor of K-d Tree
-
insert(dynamic point)
→ void
-
-
nearest(dynamic point, int maxNodes, [int? maxDistance])
→ List
-
Find the
maxNodes
of nearest Nodes.
Distance is calculated via Metric function.
Max distance can be set with maxDistance
param
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(dynamic point)
→ void
-
Remove the Node from the K-d Tree
-
toJson()
→ Map<String, dynamic>
-
-
toString()
→ String
-
A string representation of this object.
inherited