horizontally scale with the number of samples.