Automatic signal recognition for a flexible spectrum management