IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
adjust_turn2.m File Reference

Detailed Description

Turns loadings vectors.

Turns loadings vectors so that they make less than 90 degrees with their corresponding loadings vectors from a reference block.

Works both with fcon_linear blocks and block_cascade_base blocks. In case of block_cascade_base, only acts on the last block

This function makes sense with eigenvectors of some matrix, e.g., loadings from PCA/LDA/PLS

Acts on the columns of L separately.

as_crossc

Definition in file adjust_turn2.m.

Go to the source code of this file.

Functions

function adjust_turn2 (in b, in bref)
 

Function Documentation

function adjust_turn2 ( in  b,
in  bref 
)
Parameters
bBlock to act on. Block must have the L property
brefReference block
Returns
a [nf]x[nf] "turning" matrix/ This matrix is diagonal with elements either +1 or -1. L*M turns the loadings vector