Profile function
Detrend and integrate the signal.
x (numpy.array) – Input array.
n (int) – Window size.
segments – Non-overlappping windows of size n.
numpy.array