Skip to main content
. 2020 Dec 27;21(1):122. doi: 10.3390/s21010122
Algorithm 2 ANOVA F-spectral Embedding
Input: XI.
Output: Xo
 1   XI is the sample image feature matrix, Xo is the selected and transformed sample image feature matrix.
 2   FOR i = 1: n //n is the dimension of a feature in the feature matrix of the image sample.
 3   Calculate the f-value of each feature according to Formula (18).
 4   fvector=fvector U f
 5   sumf+=fi//sumf is the sum of the f-values of the sample features, fi is the f-value of the i-th feature.
 6  END
 7  Calculate the f¯vector value of each feature according to Formula (18), sort f¯vector in descending order
 8 FOR i = 1: n
 9  IF (sum + = f¯vector(i)) < 99.9%
 10   X = XI(i)
 11   END
 12 END
 13  Transform X into a graph representation using the affinity (adjacency) matrix representation.
 14  Construct an unnormalized Laplacian graph as L=DA and a normalized graph as L=D1/2(DA)D1/2.
 15  Perform eigenvalue decomposition on the Laplacian graph after performing the above treatment on Xo.
 16 Return Xo