add functions to calculation correlations from mixed events