pyclustering
0.10.1
pyclustring is a Python, C++ data mining library.
|
Represents a node in a KD-Tree. More...
Public Member Functions | |
def | __init__ (self, data=None, payload=None, left=None, right=None, disc=None, parent=None) |
Creates KD-tree node. More... | |
def | __repr__ (self) |
def | __str__ (self) |
def | get_children (self) |
Returns list of not None children of the node. More... | |
Public Attributes | |
data | |
Data point that is presented as list of coordinates. | |
payload | |
Payload of node that can be used by user for storing specific information in the node. | |
left | |
Left node successor of the node. | |
right | |
Right node successor of the node. | |
disc | |
Index of dimension. | |
parent | |
Parent node of the node. | |
Represents a node in a KD-Tree.
The KD-Tree node contains point's coordinates, discriminator, payload and pointers to parent and children.
def pyclustering.container.kdtree.node.__init__ | ( | self, | |
data = None , |
|||
payload = None , |
|||
left = None , |
|||
right = None , |
|||
disc = None , |
|||
parent = None |
|||
) |
Creates KD-tree node.
[in] | data | (list): Data point that is presented as list of coordinates. |
[in] | payload | (any): Payload of node (pointer to essence that is attached to this node). |
[in] | left | (node): Node of KD-Tree that represents left successor. |
[in] | right | (node): Node of KD-Tree that represents right successor. |
[in] | disc | (uint): Index of dimension of that node. |
[in] | parent | (node): Node of KD-Tree that represents parent. |
def pyclustering.container.kdtree.node.__repr__ | ( | self | ) |
Definition at line 204 of file kdtree.py.
Referenced by pyclustering.container.kdtree.node.__str__().
def pyclustering.container.kdtree.node.__str__ | ( | self | ) |
def pyclustering.container.kdtree.node.get_children | ( | self | ) |