Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

sdynpy.signal_processing.sdynpy_srs.window_compensation

Signature

def sdynpy.signal_processing.sdynpy_srs.window_compensation(x: numpy.ndarray, window: numpy.ndarray | float, sample_rate: float, delay: float = 0.0) -> Dict[str, numpy.ndarray]

Apply a compensation waveform to enforce zero terminal cumulative moments.

Parameters

Returns

Notes

This function follows the numerical approach of MATLAB sdwcomp. The compensation is constructed from three basis terms: a windowed DC term, a windowed sine term, and a windowed cosine term. Their amplitudes are chosen so that the final cumulative sums corresponding to acceleration, velocity, and displacement-like integrals vanish.