Small fix in analysis.memory

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