computeGradtrunc(nsims=100, scale=1, nis, theta, timediffs, mu,
temporal, grid)Advanced use only. A function to compute a gradient truncation parameter for MALA via simulation. The function requires an FFT 'grid' to be pre-computed, see fftgrid.