Functions and Formulas
Hierarchical
Hierarchical
hDistribute
Splits up a given total top-down in a hierarchy, distributing each parent's value between its children relative to the children's input weights.
Parameters
x : | is the Vector of raw weights |
total : | is the given total |
useArity : | |
tree : | |
subsystemmatrix : | |
usearity-1 : | |
tree-1 : | |
subsystemmatrix-1 : |
hGet
maps the argument to a lower hierarchy level.
Parameters
x : | the argument |
hMax
Calculates the maximum of all values defined for the children of a tree node.
Parameters
container : | A vector with the values of all child items |
tree : | |
tree-1 : | |
ignoreempty : |
hMean
Calculates the geometric mean of all values defined for the children of a tree node.
Parameters
container : | A vector with the values of all child items |
tree : | |
tree-1 : | |
ignoreempty : |
hMin
Calculates the minimum of all values defined for the children of a tree node.
Parameters
container : | A vector with the values of all child items |
tree : | |
tree-1 : | |
ignoreempty : |
hNorm
Normalizes the numbers belonging to one group in a container to a given total.
Parameters
x : | detects empty rows or columns in a matrix or tensor.|is the matrix or tensor to be checked|is the row dimension index or tree|is the column dimension index or tree |
total : | Normalizes the numbers in a container to a total of 1.0.|is the container which contains the values you want to normalize.|is the level of details to operate on|specifies the dimension for the operation if the source is a multi-dimensional collection |
hPercentage
Normalizes the numbers of a container belonging to one group to 100%.
Parameters
x : | detects empty rows or columns in a matrix or tensor.|is the matrix or tensor to be checked|is the row dimension index or tree|is the column dimension index or tree |
hProd
Calculates the product of all values defined for the children of a tree node.
Parameters
container : | A vector with the values of all child items |
tree : | |
tree-1 : | |
ignoreempty : |
hProduct
Multiplies the cells of a matrix with the (hidden) group level cells.
Parameters
matrix : | A matrix defined on at least one tree with a depth > 1 |
tree : | one of the two matrix trees whose hierarchy is used for the accumulation |
hRSS
Parameters
x : | |
tree : |
hSum
Sums up the values of the given argument hierarchically.
Parameters
x : | is the vector containing the values. |
tree : | |
x-1 : | is the vector containing the values. |
tree-1 : | |
ignoreempty : | is the vector containing the values. |
numChildren
Calculates the number of children for each node in a tree.
Parameters
x : | Calculates the number of children for each node in a tree.|is the tree |
constraints : |
numInputs
Counts the number of relations on the input side of each node. Relations are taken from the tree structure (child-to-parent) or a connected dsm matrix.
Parameters
x : | is the list or tree containing the nodes. |
constraints : | set to true, if nodes marked as constraint shall be visited. |
dsm : | manages the use of dsm matrices: - "false": use only the tree structure - "true": use the tree structure and the connected dsm matrix (if there is any) - link to a dedicated dsm matrix: use only this matrix, ignore the tree structure |
Result
A column compatible to input x containing the counts.
Remarks
Relations taken from the tree structure are counted as "1". Relations from the dsm matrix are counted using the relation value, e.g. 1, 3, 9.
numOutputs
Counts the number of relations on the output side of each node. Relations are taken from the tree structure (parent-to-child) or a connected dsm matrix.
Parameters
x : | is the list or tree containing the nodes. |
constraints : | set to true, if nodes marked as constraint shall be visited. |
dsm : | manages the use of dsm matrices: - "false": use only the tree structure - "true": use the tree structure and the connected dsm matrix (if there is any) - link to a dedicated dsm matrix: use only this matrix, ignore the tree structure |
Result
A column compatible to input x containing the counts.
Remarks
Relations taken from the tree structure are counted as "1". Relations from the dsm matrix are counted using the relation value, e.g. 1, 3, 9.
Feedback
Did you find what you needed?
If you have any further questions or suggestions to improve this page, please let us know: