nmrglue.analysis.analysisbase.ndwindow_index
- class nmrglue.analysis.analysisbase.ndwindow_index(shape, wsize)[source]
An N-dimensional interator object which returns the index of the window center and a
ndwindow
slice array. Seendwindow
for additional documentation.This class is equivalent to:
- for slices, index in zip(np.ndindex(shape), ndwindow(shape,wshape)):
return (index, slice)
See also
ndwindow
Iterator over only the window slices.
ndwindow_inside
Iterator over equal sized windows in the array.
Methods
__init__
(shape, wsize)Set up the object
next
()