scaling = 1. / np.atleast_1d(np.std(data))