add clipping noise calculation function