The inversion of the discrete gauss transform