%* Last edited: Jun 14 17:57 1995 (viola)
% define some macros:

% an imposing question mark for draft use
\newcommand{\?}{{\bf ???}}

% boldface zero, for the zero vector
\newcommand{\bzero}{{\bf 0}}

% subscripted gradient, bold?
%\newcommand{\grad}[1]{\bigtriangledown_{#1}}
\newcommand{\grad}[1]{{\bf \nabla}_{#1}}

% beta with a hat on
\newcommand{\bhat}{\hat{\beta}}

% for leaving notes to myself...
\newcommand{\comment}[1]{$\bullet$ {\it #1 \\}}

% projection function
\newcommand{\proj}[1]{{\cal P}(#1)}

% inverse projection function
\newcommand{\projinv}[1]{{\cal P}^{-1}(#1)}

% comma for equation
\newcommand{\comma}{\;\; ,}

% period for equation
\newcommand{\period}{\;\; .}

% similar space for equation punctuation
\newcommand{\spacer}{\;\;}

% Gaussian density, argument is subscript on covariance
\newcommand{\gauss}[1]{{\rm G}_{\psi_{#1}}}

% Scalar Gaussian
\newcommand{\gaussian}[1]{{\rm G}_{#1}}

% for commenting out text...
% bracket with  \iffalse ... \fi

% diagonal matrix builder
\newcommand{\diag}[1]{{\rm DIAG}(#1)}

\newif\iffalse
\falsefalse

% covariance
\newcommand{\cov}{{\rm COV}}

% expectation
\newcommand{\expect}[1]{{\rm E}_{#1}}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% some figure macros...


% wbox: can be either an mbox (no lines around it)
% or an fbox (has lines around it), depending on
% state of boxlines variable.

\newif\ifboxlines
\boxlinestrue

\newcommand{\wbox}[1]
        {\ifboxlines\fbox{#1}\else\mbox{#1}\fi}

% gives control over whether page of floats or?
\def\figstart{\begin{figure}[tbp]}



% a single postscript file figure
\newcommand{\myfigure}[4]
        {\figstart
        \centering \wbox{\psadobepercent{#1}{#2}}
        \caption{#3}
        \label{#4}
        \end{figure}}


% a two postscript file figure
\newcommand{\myfiguretwo}[5]
        {\figstart
        \centering
         \wbox{\psadobepercent{#1}{#2}}
         \wbox{\psadobepercent{#1}{#3}}
        \caption{#4}
        \label{#5}
        \end{figure}}


% a three postscript file figure
\newcommand{\myfigurethree}[6]
        {\figstart
        \centering
         \wbox{\psadobepercent{#1}{#2}}
         \wbox{\psadobepercent{#1}{#3}}
         \wbox{\psadobepercent{#1}{#4}}
        \caption{#5}
        \label{#6}
        \end{figure}}


% a four picture figure
\newcommand{\myfigurefour}[7]
        {\figstart
        \centering
         \wbox{\psadobepercent{#1}{#2}}
         \wbox{\psadobepercent{#1}{#3}}
         \wbox{\psadobepercent{#1}{#4}}
         \wbox{\psadobepercent{#1}{#5}}
        \caption{#6}
        \label{#7}
        \end{figure}}
        % a four picture figure

% a five picture figure
\newcommand{\myfigurefive}[8]
        {\figstart
        \centering
         \wbox{\psadobepercent{#1}{#2}}
         \wbox{\psadobepercent{#1}{#3}}
         \wbox{\psadobepercent{#1}{#4}}
         \wbox{\psadobepercent{#1}{#5}}
         \wbox{\psadobepercent{#1}{#6}}
        \caption{#7}
        \label{#8}
        \end{figure}}
        % a four picture figure


%%%%%%%%%%%%%%%%%%%%%%%%
%%% Now the variants that span two columns in twocolumn text
% a single postscript file figure
\newcommand{\myfigurestar}[4]
        {\begin{figure*}
        \centering \wbox{\psadobepercent{#1}{#2}}
        \caption{#3}
        \label{#4}
        \end{figure*}}


% a two postscript file figure
\newcommand{\myfiguretwostar}[5]
        {\begin{figure*}
        \centering
         \wbox{\psadobepercent{#1}{#2}}
         \wbox{\psadobepercent{#1}{#3}}
        \caption{#4}
        \label{#5}
        \end{figure*}}


% a three postscript file figure
\newcommand{\myfigurethreestar}[6]
        {\begin{figure*}
        \centering
         \wbox{\psadobepercent{#1}{#2}}
         \wbox{\psadobepercent{#1}{#3}}
         \wbox{\psadobepercent{#1}{#4}}
        \caption{#5}
        \label{#6}
        \end{figure*}}


% a four picture figure
\newcommand{\myfigurefourstar}[7]
        {\begin{figure*}
        \centering
         \wbox{\psadobepercent{#1}{#2}}
         \wbox{\psadobepercent{#1}{#3}}
         \wbox{\psadobepercent{#1}{#4}}
         \wbox{\psadobepercent{#1}{#5}}
        \caption{#6}
        \label{#7}
        \end{figure*}}
        % a four picture figure

% a five picture figure
\newcommand{\myfigurefivestar}[8]
        {\begin{figure*}
        \centering
         \wbox{\psadobepercent{#1}{#2}}
         \wbox{\psadobepercent{#1}{#3}}
         \wbox{\psadobepercent{#1}{#4}}
         \wbox{\psadobepercent{#1}{#5}}
         \wbox{\psadobepercent{#1}{#6}}
        \caption{#7}
        \label{#8}
        \end{figure*}}
        % a four picture figure



        
% assingment in pseudo-code...
\newcommand{\ass}{$\leftarrow\;$}

\newcommand{\tuple}[1]{$<$ #1 $>$}

\newcommand{\floor}[1]{\lfloor #1 \rfloor}


%\def\Bbb{\relaxnext@\ifmode\let\next\Bbb@\else
%\def\next{\Err@{Use \string\Bbb\space only in math mode}}\fi\next}
%\def\Bbb@#1{{\Bbb@@{#1}}}
%\def\Bbb@@#1{\noaccents@\fam\msyfam#1}
%\font\tenmsy=msym10
%\def\Bbb#1{{\tenmsy#1}}

\newcommand{\R}{{\sf R\hspace*{-0.9ex}\rule{0.15ex}{1.5ex}\hspace*{0.9ex}}}
