Research Article
Human Activity Recognition in AAL Environments Using Random Projections
Pseudocode 2
Pseudocode of binary classification.
ALGORITHM: BinaryClassify | INPUT: sample [1xm matrix], bestProjection [mx2 matrix], | density estimates fx1,fy1 (class +1), and | fx2,fy2 (class -1) [1xn vectors] | OUTPUT:classLabel | BEGIN | pSample = sample * bestProjection | IF (fx1(pSample) * fy1(pSample) > fx2(pSample) * fy2(pSample)) | LET classLabel = +1 | ELSE | LET classLabel = -1 | END | RETURN classLabel | END |
|