Learn R Programming

treelet (version 0.2-0)

JTree_Scores: Calculates scores for the "best K-basis" at each level of the tree

Description

calls two function Calc_Energy

Usage

JTree_Scores(X, K, Zpos, T, PCidx, maxlev, all_nodes)

Arguments

X
data matrix
K
number of vectors in final representation
Zpos
Zpos[J,2] is the nodes to be merged
T
a list containing T nodes. Element in the cell array contains a 2-by-2 matrix that decorrelates inputs X(:,Z (k,1)) and X(:,Z(k,2)); output from LKLB_Decorrelate.
PCidx
PCidx[J,2] id of principal components (1st or 2nd)
maxlev
default:dim-1
all_nodes
node labels, output of Build_JTree

Value

  • levelsat each level
  • scoreswhat the score is at the corresponding level