Internal function: Detrend Y by column-wise centering

detrend(Y, is_Y_detrended)

Arguments

Y

Data matrix

Value

Detrended data matrix