\HeaderA{diffFilter-methods}{Difference Filter}{diffFilter.Rdash.methods}
\aliasA{diffFilter}{diffFilter-methods}{diffFilter}
\aliasA{diffFilter<\Rdash}{diffFilter-methods}{diffFilter<.Rdash.}
\keyword{methods}{diffFilter-methods}
\begin{Description}\relax
This method initializes the Difference Filter. \\
The difference is the maximum value minus minimum value for each row of the expression dataframe
divided by the mean value of each row. \\
The Difference Filter flags all rows with: \code{flag = ((max - min)/mean >= cutoff)}

\emph{Usage}

\code{diffFilter(object)} \\
\code{diffFilter(object, value)<-}
\end{Description}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] object of class \code{PreFilter}.
\item[\code{value}] numeric vector \code{c(cutoff, trim, epsilon)}.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
The method \code{diffFilter} initializes the following parameters:
\Tabular{lll}{
& \code{cutoff}:& the cutoff level for the filter. \\
& \code{trim}:& the trim value for trimmed mean (default is \code{trim=0}). \\
& \code{epsilon}:& value to replace mean (default is \code{epsilon=0.01}): \\
&                & \code{epsilon > 0}: replace mean=0 with epsilon. \\
&                & \code{epsilon = 0}: always set mean=1.
}
Note, that for \code{epsilon = 0} the filter flags all rows with: (max - min) >= cutoff
\end{Details}
\begin{Value}
An initialized \code{\LinkA{PreFilter}{PreFilter.Rdash.class}} object.
\end{Value}
\begin{Author}\relax
Christian Stratowa
\end{Author}
\begin{Examples}
\begin{ExampleCode}
prefltr <- PreFilter()
diffFilter(prefltr) <- c(2.2,0.0,0.01)
str(prefltr)
\end{ExampleCode}
\end{Examples}

