Calculate moderators matrix.