\HeaderA{linfnorm}{Compute L infinity distance between two vectors of numbers.}{linfnorm}
\keyword{algebra}{linfnorm}
\begin{Description}\relax
Compute L infinity distance between two vectors of numbers (maximum absolute difference between two vectors).
\end{Description}
\begin{Usage}
\begin{verbatim}
linfnorm(u,v)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{u}] first vector of numbers
\item[\code{v}] second vector of numbers
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
Function simply computes the L infinity distance between two vectors and is implemented as 

\code{max(abs(u-v))}
\end{Details}
\begin{Value}
A real number which is the L infinity distance between two vectors.
\end{Value}
\begin{Section}{RELEASE}
Version 3.6 Copyright Guy Nason 1995
\end{Section}
\begin{SeeAlso}\relax
\code{\LinkA{l2norm}{l2norm}}, \code{\LinkA{wstCV}{wstCV}}, \code{\LinkA{wstCVl}{wstCVl}}.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
#
# What is the L infinity norm between the following sets of vectors
#
#p <- c(1,2,3,4,5)
#q <- c(1,2,3,4,5)
#r <- c(2,3,4,5,6)
#linfnorm(p,q)
# [1] 0
#linfnorm(q,r)
# [1] 1
#linfnorm(r,p)
# [1] 1
\end{ExampleCode}
\end{Examples}

