Library for digital signal processing of electrogastroenterograms