Bridging between soft and hard thresholding by scaling