1. A method for suppressing a pinging phenomenon affecting operation of an internal combustion engine, by correcting at least one of ignition advance angle of an air/fuel mixture introduced into the engine, composition of this mixture and energy of an ignition spark, comprising the steps of: measuring an instantaneous energy of the pinging phenomenon and calculating a quantity dependent on the instantaneous value of this measurement the quantity being calculated from the expressions: ##EQU6## where R.sub.i is the quantity, valclq is the instantaneous value of the measurement of the energy of the pinging phenomenon, and clqmoy is a sliding average value of this measurement, and K.sub.1 and K.sub.2 are constants; calculating a sliding average value of the quantity, weighted by a forget factor; and calculating a correction to be applied from predetermined relations derived from a set of such relations and selected as a function of the instantaneous values of the quantity and of the weighted sliding average,