Skip to main content
. 2019 Jun 8;19(11):2609. doi: 10.3390/s19112609
Algorithm 2 Non-negative collaborative representation based classifier.
 1: Normalize X to have l2 norm
 2: Calculate the collaborative representation coefficients vector α^ using formulation (1)
α^=argminαy−Xα22+λα22
 3: Use ReLU function described in Equation (5) to map each collaborative representations to non-negative representation
f(x)=x,x⩾00,x<0
α˜=f(α^)
 4: Represent the test sample using non-negative representations described as Equation (6)
y=α1˜x1+α2˜x2+α3˜x3+…+αn˜xn
 5: Calculate the the residuals between test sample y and representation of each class using Equation (7)
identityy=argmini∥y−Xiαi˜∥2