pyclustering.container.kdtree.node Class Reference

Represents node of KD-Tree. More...

Public Member Functions

def __init__ (self, data=None, payload=None, left=None, right=None, disc=None, parent=None)
 
def __repr__ (self)
 
def __str__ (self)
 

Public Attributes

 data
 Data point that is presented as list of coodinates. More...
 
 payload
 Payload of node that can be used by user for storing specific information in the node. More...
 
 left
 Left node successor of the node. More...
 
 right
 Right node successor of the node. More...
 
 disc
 Index of dimension. More...
 
 parent
 Parent node of the node. More...
 

Detailed Description

Represents node of KD-Tree.

Definition at line 95 of file kdtree.py.

Constructor & Destructor Documentation

◆ __init__()

def pyclustering.container.kdtree.node.__init__ (   self,
  data = None,
  payload = None,
  left = None,
  right = None,
  disc = None,
  parent = None 
)
Parameters
[in]data(list): Data point that is presented as list of coodinates.
[in]payload(*): Payload of node (pointer to essense that is attached to this node).
[in]left(node): Node of KD-Tree that is represented left successor.
[in]right(node): Node of KD-Tree that is represented right successor.
[in]disc(uint): Index of dimension of that node.
[in]parent(node): Node of KD-Tree that is represented parent.

Definition at line 101 of file kdtree.py.

Member Function Documentation

◆ __repr__()

def pyclustering.container.kdtree.node.__repr__ (   self)
Returns
(string) Default representation of the node.

Definition at line 133 of file kdtree.py.

Referenced by pyclustering.container.kdtree.node.__str__().

◆ __str__()

def pyclustering.container.kdtree.node.__str__ (   self)
Returns
(string) String representation of the node.

Definition at line 149 of file kdtree.py.

Member Data Documentation

◆ data

pyclustering.container.kdtree.node.data

Data point that is presented as list of coodinates.

Definition at line 115 of file kdtree.py.

Referenced by pyclustering.container.kdtree.node.__repr__().

◆ disc

pyclustering.container.kdtree.node.disc

Index of dimension.

Definition at line 127 of file kdtree.py.

◆ left

pyclustering.container.kdtree.node.left

Left node successor of the node.

Definition at line 121 of file kdtree.py.

Referenced by pyclustering.container.kdtree.node.__repr__().

◆ parent

pyclustering.container.kdtree.node.parent

Parent node of the node.

Definition at line 130 of file kdtree.py.

◆ payload

pyclustering.container.kdtree.node.payload

Payload of node that can be used by user for storing specific information in the node.

Definition at line 118 of file kdtree.py.

◆ right

pyclustering.container.kdtree.node.right

Right node successor of the node.

Definition at line 124 of file kdtree.py.

Referenced by pyclustering.container.kdtree.node.__repr__().


The documentation for this class was generated from the following file: