Support three mode : Pearson/cosine/percentCosine