smash.SampleResult.iterslice#
- SampleResult.iterslice(by=1)[source]#
Iterate on the
SampleResultobject by slices.- Parameters:
- byint, default 1
The size of the
SampleResultslice. 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
SampleResultobject sliced according to by arguments.
See also
SampleResult.sliceSlice the
SampleResultobject.