Small fix in analysis.memory

The script now takes into accound the number of repeats of the experiment.