The code from my thesis to classify the ERD data.