矩陣
\begin{equation}
\mathbf{DATA_{chiller1}} = \left( { \begin{array}{cccc}
x_{t-4}^{1} & x_{t-4}^{2} & \ldots & x_{t-4}^{11}\\
x_{t-3}^{1} & x_{t-3}^{2} & \ldots & x_{t-3}^{11}\\
\vdots & \vdots & \ddots & \vdots\\
x_{t}^{1} & x_{t}^{2} & \ldots & x_{t}^{11}\\
\end{array} } \right)
\end{equation}
分段函數
\begin{equation}
f(x)=
\left\{
\begin{array}{rcl}
\sum_{i = 0}^{3} g_{down}(KW^{electricity}_i) & \sum_{i = 0}^{3} KW^{electricity}_{t-1} > \sum_{i = 0}^{3} KW^{electricity}_t \\
\sum_{i = 0}^{3} g_{up}(KW^{electricity}_i) & \sum_{i = 0}^{3} KW^{electricity}_{t-1} < \sum_{i = 0}^{3} KW^{electricity}_t \\
{0} & else
\end{array}
\right.
\end{equation}
Reference:
矩陣 函數博客