function component=commonDirection(allData)

covarMat=allData'*allData; 
[vecsCov,diagCov]=eig(covarMat);

component = vecsCov(:,end);
