data_structures.kd_tree.kd_node

Classes

KDNode

Represents a node in a KD-Tree.

Module Contents

class data_structures.kd_tree.kd_node.KDNode(point: list[float], left: KDNode | None = None, right: KDNode | None = None)

Represents a node in a KD-Tree.

Attributes:

point: The point stored in this node. left: The left child node. right: The right child node.

left = None
point
right = None