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. See ndwindow 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.
__init__(shape, wsize)[source]

Set up the object

Methods

__init__(shape, wsize) Set up the object
next(() -> the next value, ...)

Previous topic

nmrglue.analysis.analysisbase.ndwindow

Next topic

nmrglue.analysis.analysisbase.ndwindow_inside

This Page