MCPcopy
hub / github.com/jesolem/PCV / get_height

Method get_height

PCV/clustering/hcluster.py:24–27  ·  view source on GitHub ↗

Return the height of a node, height is sum of each branch.

(self)

Source from the content-addressed store, hash-verified

22 return self.left.get_cluster_elements() + self.right.get_cluster_elements()
23
24 def get_height(self):
25 """ Return the height of a node,
26 height is sum of each branch. """
27 return self.left.get_height() + self.right.get_height()
28
29 def get_depth(self):
30 """ Return the depth of a node, depth is

Callers 2

drawMethod · 0.45
draw_dendrogramFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected