Analysis and experimental code for wgnr