|
Algorithm 2 Non-negative collaborative representation based classifier. |
|
|
1: |
Normalize to have norm |
|
|
2: |
Calculate the collaborative representation coefficients vector using formulation (1) |
|
|
|
|
3: |
Use ReLU function described in Equation (5) to map each collaborative representations to non-negative representation |
|
|
|
|
|
|
4: |
Represent the test sample using non-negative representations described as Equation (6) |
|
|
|
|
5: |
Calculate the the residuals between test sample and representation of each class using Equation (7) |
|
|