Probabilistic assignment of mainshock-aftershock and swarm type clustering