<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def iterations(self, parameter):
 """Returns the iteration each sample occurred at."""

        return numpy.arange(0, self.last_iteration(parameter), self.thinned_by)