Single sweep analysis of evoked and event related potentials