function [U, V, eigvalue_U, eigvalue_V, posIdx, Y] = TensorLPP(X, W, options) % TensorLPP: Tensor Locality Preserving Projections % % [U, V, eigvalue_U, eigvalue_V, posIdx, Y] = TensorLPP(X, W, options) % % Input: % X - 3-d data matrix. X(:,:,i) is the i-th data % sample. % W - Affinity matrix. You can either call "constructW" % to construct the W, or construct it by yourself. % options - Struct value in Matlab. The fields in options % that can be set: % nRepeat - The repeat times of the % iterative procedure. Default % 10 % % Output: % U, V - Embedding functions, for a new data point % (matrix) x, y = U'*x*V will be the embedding % result of x. You might need to resort each % element in y based on the posIdx. % eigvalue_U % eigvalue_V - corresponding eigenvalue. % % Y - The embedding results, Each row vector is a % data point. The features in Y has been sorted % that Y(:,i) will be important to Y(:,j) with % respect to the objective function if i