Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollapseLongPaths ¶ added in v1.2.0
func CollapseLongPaths(t *Tree)
CollapseLongPaths will collapse all long chains in tree.
func CollapseLongPathsFromNode ¶ added in v1.2.0
CollapseLongPathsFromNode will collapse current node into children as long as it has single child. Will set name of this node to joined path from roots. Will set size and heat to this child's size and heat. Expecting Name containing either single value for current node.
func SetNamesFromPaths ¶ added in v1.1.0
func SetNamesFromPaths(t *Tree)
SetNamesFromPaths will update each node to its path leaf as name.
Types ¶
type SumSizeImputer ¶ added in v1.0.2
type SumSizeImputer struct {
EmptyLeafSize float64
}
SumSizeImputer will set sum of children into empty parents and fill children with contant.
func (SumSizeImputer) ImputeSize ¶ added in v1.0.2
func (s SumSizeImputer) ImputeSize(t Tree)
func (SumSizeImputer) ImputeSizeNode ¶ added in v1.0.2
func (s SumSizeImputer) ImputeSizeNode(t Tree, node string)
type Tree ¶
func (Tree) NormalizeHeat ¶
func (t Tree) NormalizeHeat()
type WeightedHeatImputer ¶ added in v1.0.2
type WeightedHeatImputer struct {
EmptyLeafHeat float64
}
WeightedHeatImputer will make color of parent to weighted sum of colors of its children.
func (WeightedHeatImputer) ImputeHeat ¶ added in v1.0.2
func (s WeightedHeatImputer) ImputeHeat(t Tree)
func (WeightedHeatImputer) ImputeHeatNode ¶ added in v1.0.2
func (s WeightedHeatImputer) ImputeHeatNode(t Tree, node string)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.