Spike detection based on normalized correlation with automatic template generation.

Spike detection based on normalized correlation with automatic template generation.