Singular value decomposition for time series analysis with applications to smart energy systems