cor_stat_rs function

Calculate general stationary correlation.