Reference

Contents

Index

DecayAngles.DecayNodeMethod
DecayNode(node::Tuple, f0=identity)

Wrap a bracket topology notation into a DecayNode structure

Example

julia> topology = DecayNode( (1,(2,3)) )
julia> map_tree(topology) do value, node
	tuple_representation = value
	(; name=string(value), tuple_representation)
end
source
DecayAngles.flatten_sort_nested_tupleMethod
flatten_sort_nested_tuple(n)

Flatten a nested tuple into a single tuple which is also sorted.

Example

julia julia> flatten_sort_nested_tuple(((4,1),(2,3))) (1,2,3,4)`

source
DecayAngles.map_treeMethod
map_tree(f, node::DecayNode)

Iterate over the three and apply a function f(value, node) to every nodes, storing the result in the value field.

Example

julia> map_tree(build_tree((1,(2,3)))) do value, node
	tuple_representation = value
	(; name=string(value), tuple_representation)
end
source
DecayAngles.map_with_parent_nodeFunction
map_with_parent_node(f, node::DecayNode, parent_node = DecayNode(nothing, [node]))

Propagates the values from parent to all children and apply operation on it. The signature of the function is f(value, parent_node)

Example

julia> map_with_parent(DecayNode((1,(2,3))), "0") do value, parent_value
    string(parent_value) * " => " * string(value)
end
source
DecayAngles.to_tableMethod
totable(tree::DecayNode)

Iterate over the tree and table-like collection of named tuples from the node values.

Example

julia> topology = DecayNode( (1,(2,3)); apply=x->(; tuple=x))
julia> totable(topology) |> DataFrame
source