3 %> @brief Turns loadings vectors
5 %> Turns loadings vectors so that they make less than 90 degrees with their corresponding loadings vectors from a reference
block.
9 %> This
function makes sense with eigenvectors of some matrix, e.g., loadings from PCA/LDA/PLS
11 %> Acts on the columns of L separately.
16 %> @param b Block to act on. Block must have the @c L
property
17 %> @param bref Reference
block
18 %> @
return a [nf]x[nf]
"turning" matrix/ This matrix is diagonal with elements either +1 or -1. <code>L*M</code> turns the loadings vector
21 % flag_cascade = isa(b,
'block_cascade_base');
24 % L = b.blocks{end}.L;
25 % Lref = bref.blocks{end}.L;
31 if size(L, 2) ~= size(Lref, 2)
32 irerror(sprintf('Number of loadings do not match: %d against %d', size(L, 2), size(Lref, r)));
36 % figure;subplot(2, 1, 1); plot(L(:, 1)); title('L');subplot(2, 1, 2); plot(Lref(:, 1)); title('Lref');
Feature Construction - Linear Transformations base class.
Cross-calculation Analysis Session.
function adjust_turn2(in b, in bref)
Cascade block: sequence of blocks represented by a block.