nodeToLeafCoefficients: Node coefficients to leaf coefficients
Description
General-purpose function for going from a coefficient vector on the
nodes to a coefficient vector on the leaves.
Usage
nodeToLeafCoefficients(coef.vec, tree)
Arguments
coef.vec
A vector containing coefficients on internal nodes plus leaves.
Value
A vector containing coefficients on the leaves.