pyclustering.container.kdtree.kdtree_text_visualizer Class Reference

KD-tree text visualizer that provides service to diplay tree structure using text representation. More...

Public Member Functions

def __init__ (self, kdtree_instance)
 Initialize KD-tree text visualizer. More...
 
def visualize (self, display=True)
 Display KD-tree to console. More...
 

Detailed Description

KD-tree text visualizer that provides service to diplay tree structure using text representation.

Definition at line 33 of file kdtree.py.

Constructor & Destructor Documentation

◆ __init__()

def pyclustering.container.kdtree.kdtree_text_visualizer.__init__ (   self,
  kdtree_instance 
)

Initialize KD-tree text visualizer.

Parameters
[in]kdtree_instance(kdtree): Instance of KD-Tree that should be visualized.

Definition at line 39 of file kdtree.py.

Member Function Documentation

◆ visualize()

def pyclustering.container.kdtree.kdtree_text_visualizer.visualize (   self,
  display = True 
)

Display KD-tree to console.

Parameters
[in]display(bool): If 'True' then tree will be shown in console.
Returns
(string) Text representation of the KD-tree.

Definition at line 52 of file kdtree.py.


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