Skip to main content
. 2019 Jun 8;19(11):2609. doi: 10.3390/s19112609
Algorithm 1 Collaborative representation based classifier.
1: Normalize X to have l2 norm
2: Calculate the collaborative representation coefficients vector α^ using
α^=argminαy−Xα22+λα22
3: Calculate the the residuals between test sample y and the representation of each class using formulation and obtain the identity of y using Equation (3):
identityy=argmini∥y−Xiαi∥2