Optical waveform feature selection using a pseudo-similarity method