The Similarity Approach to EEG Analysis