Mental ability, P300, and mismatch negativity: Analysis of frequency and duration discrimination · Study