Cancellation of ventricular activity in endocavitary recordings during atrial fibrillation by particle swarm optimization