\begin{figure}[htbp]
\mbox{}\hrulefill\mbox{}
$$\vbox{\hsize=135mm\small
\def\ix{\hspace*{1em}}
\def\<#1>{\hbox{\bf#1}} \def\[#1]{\hbox{\it#1}}
  \ix do forever \\
  \ix\ix sleep 1 Sample\_Interval \\
  \ix\ix compute Load($t_i$) \\
  \ix\ix if Load($t_i$) = Smoothed\_load($t_{i-1}$) \\
 \ix\ix\ix then continue \\
  \ix\ix if Load($t_i$) $>$ Smoothed\_Load($t_{i-k}$) for k = 1...N \\
  \ix\ix\ix then Smoothed\_Load($t_i$) = Load($t_i$) \\
  \ix\ix if Load($t_i$) $<$ Smoothed\_Load($t_{i-k}$) for k = 1...M \\
  \ix\ix\ix then Smoothed\_Load($t_i$) = Load($t_i$) \\
  \ix end    \\
}$$
\caption{Load Measurement Algorithm}
\label{fig:measure}
\mbox{}\hrulefill\mbox{}
\end{figure}
\vspace{.15in}


