an algorithm to process ieeg data to classify preictal and ictal states in epilleptic patients.