Moving Basis Decomposition