Characterisation of congenital nystagmus in terms of periodic orbits