Waveform analysis is used to identify and distinguish components of a
sensed input signal, such as P-wave and Far Field R-wave signal
components present in a sensed cardiac signal, even when the components
are so closely spaced in time that the overlap to create a distorted
input signal. A set of composite waveforms are generated by superimposing
waveform templates of the signal components with different time delays or
degree of overlap. Form parameters for each composite waveform are
derived and mapped in a multidimensional map, from which form parameter
boundaries are derived. Waveform data is collected from an input signal
during a sensed event time window, and form parameters for the input
signal waveform are derived. An output identifying the signal component
of interest (e.g., a P-wave) and its location within the sensed event
time window is produced based upon the set of form parameters of the
input signal waveform and the form parameter boundaries.