A waveform digitizer-based automatic modulation classifier for a flexible spectrum management