Earth Mover Distance with a reference dataset