We designed a weighted cross-correlation coefficient considering the "anchor" of the T cell epitopes, and used an evolutionary algorithm to search for an optimal weight vector. A SVM model with this new peptide similarity kernel was evaluated on a T-cell data set. The results demonstrated a good performance of this method.