Capturing spike train temporal pattern with wavelet average coefficient for brain machine interface