Hierarchical

hdistribution

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.

Collection hdistribution(Collection x, Object total, boolean useArity=false, Collection tree=nothing, Collection subsystemmatrix=nothing, boolean =false, Collection =nothing, Collection =nothing)

  • x: is the Vector of raw weights
  • total: is the given total
  • useArity:
  • tree:
  • subsystemmatrix:
  • :
  • :
  • :

hget

maps the argument to a lower hierarchy level.

Collection hget(Collection x)

  • x: the argument

hmax

Calculates the maximum of all values defined for the children of a tree node.

Collection hmax(Collection container, Object tree=nothing, Object =nothing, boolean ignoreempty=false)

  • container: A vector with the values of all child items
  • tree:
  • :
  • ignoreempty:

hmean

Calculates the geometric mean of all values defined for the children of a tree node.

Collection hmean(Collection container, Object tree=nothing, Object =nothing, boolean ignoreempty=false)

  • container: A vector with the values of all child items
  • tree:
  • :
  • ignoreempty:

hmin

Calculates the minimum of all values defined for the children of a tree node.

Collection hmin(Collection container, Object tree=nothing, Object =nothing, boolean ignoreempty=false)

  • container: A vector with the values of all child items
  • tree:
  • :
  • ignoreempty:

hnorm

Normalizes the numbers belonging to one group in a container to a given total.

Collection hnorm(Collection x, Numeric total=1.0)

  • 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%.

Collection hpercentage(Collection x)

  • 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.

Collection hprod(Collection container, Object tree=nothing, Object =nothing, boolean ignoreempty=false)

  • container: A vector with the values of all child items
  • tree:
  • :
  • ignoreempty:

hproduct

Multiplies the cells of a matrix with the (hidden) group level cells.

Collection hproduct(Collection matrix, Collection tree)

  • 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

hsum

Sums up the values of the given argument hierarchically.

Collection hsum(Collection x, Object tree=nothing, Collection , Object =nothing, boolean ignoreempty=false)

  • x: is the vector containing the values.
  • tree:
  • : is the vector containing the values.
  • :
  • ignoreempty:

numchildren

Calculates the number of children for each node in a tree.

Collection numchildren(Collection x)

  • x: Calculates the number of children for each node in a tree.|is the tree

Feedback

Did you find what you needed?

If you have any further questions or suggestions to improve this page, please let us know:

=