smash.SampleResult.iterslice#

SampleResult.iterslice(by=1)[source]#

Iterate on the SampleResult object by slices.

Parameters:
byint, default 1

The size of the SampleResult slice. If by is not a multiple of the sample size \(n\) the last slice iteration size will be updated to the maximum range. It results in \(k=\lfloor{\frac{n}{by}}\rfloor\) iterations of size \(by\) and one last iteration of size \(n - k \times by\).

Yields:
sliceSampleResult

The SampleResult object sliced according to by arguments.

See also

SampleResult.slice

Slice the SampleResult object.