Automatic detection and removal of fast phases from nystagmographic recordings by optimal thresholding