fosanalysis
A framework to evaluate distributed fiber optic sensor data
Loading...
Searching...
No Matches
windows.py File Reference

Go to the source code of this file.

Namespaces

namespace  fosanalysis
 Central package of fosanalysis.
 
namespace  fosanalysis.utils
 Contains utility modules with general pupose.
 
namespace  fosanalysis.utils.windows
 Contains functions to shift a (partly) view of an array across the full array.
 

Functions

list fosanalysis.utils.windows.determine_moving_parameters (np.array data_array, tuple radius, tuple start_pixel=None, tuple step_size=None)
 Generate indices for a moving window and check the other parameters.
 
 fosanalysis.utils.windows.moving (np.array data_array, tuple radius, tuple start_pixel=None, tuple step_size=None)
 Generates a symmetric moving window over an array.
 
 fosanalysis.utils.windows.sliding (np.array data_array, radius)
 Generates a sliding window over an array.
 
np.array fosanalysis.utils.windows.sliding_window_function (np.array arr, radius, fn, str pad_mode=None, *args, **kwargs)
 Applies the function fn to a sliding window over the array arr.