calculate affinity using coef with best shift
fix param
update for clustering with ceof with best shift
c function for shift; a tool for resubmit condor jobs