1. A system for analyzing an electrophysiological signal, comprising: an acquisition device for acquiring a test electrophysiological signal associated with an anatomical part of a patient; and a processor configured to: divide a cycle of said test electrophysiological signal into a plurality of test time windows; compare a test signal value of each of said plurality of test time windows with a reference signal value of a plurality of reference time windows of one or more reference segments of a plurality of respective representations representing a plurality of respective predetermined morphological classes to obtain a difference between said test signal value of each of said plurality of test time windows and said reference signal value of said plurality of reference time windows of said one or more reference segments, said one or more reference segments being formed using respective training data; define a plurality of grid points associated with respective ones of said test time windows, respective reference time windows and respective differences; obtain a warping path over said test time windows using said grid points non-linearly in a predetermined order; sum differences along said grid points of each of said warping paths corresponding to each of said plurality of respective representations to obtain a cumulative distance for each of said warping paths; and classify said test electrophysiological signal into one of said respective predetermined morphological classes corresponding to said warping path of said respective representation having the least said cumulative distance.