Python rms amplitude. G is the gain applied by the user.