\hypertarget{Helpers_8c}{
\section{Helpers.c File Reference}
\label{Helpers_8c}\index{Helpers.c@{Helpers.c}}
}
{\ttfamily \#include \char`\"{}coin\_\-common.h\char`\"{}}\par
Include dependency graph for Helpers.c:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=400pt]{Helpers_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{Helpers_8c_aeeb672a71c45ead28b7b354414f2427a}{nrow} (SEXP x)
\item 
int \hyperlink{Helpers_8c_af1f46cc3e98630497a1ccb21d943fe65}{ncol} (SEXP x)
\item 
void \hyperlink{Helpers_8c_af7c710920d1496d23fdabad9b1d0e18c}{C\_\-SampleNoReplace} (int $\ast$x, int m, int k, int $\ast$ans)
\item 
SEXP \hyperlink{Helpers_8c_a877d7b2378274b833a8c14b27d7a16a1}{R\_\-blocksetup} (SEXP block)
\item 
void \hyperlink{Helpers_8c_a7c6b9e02fb5bcf919c7823d497cab062}{C\_\-blockperm} (SEXP blocksetup, int $\ast$ans)
\item 
SEXP \hyperlink{Helpers_8c_ac97588ec77f215433b2933e5632f810d}{R\_\-blockperm} (SEXP block)
\item 
SEXP \hyperlink{Helpers_8c_a140f9859faf864060c8a8ae129bc0190}{R\_\-MonteCarloIndependenceTest} (SEXP x, SEXP y, SEXP block, SEXP B)
\item 
SEXP \hyperlink{Helpers_8c_a712dc63828d311dc3be30182fccf6f0f}{R\_\-maxstattrafo} (SEXP x, SEXP cutpoints)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Some additional functionality for package `coin'

\begin{DoxyAuthor}{Author}

\end{DoxyAuthor}
\begin{DoxyParagraph}{Author:}
hothorn 
\end{DoxyParagraph}
\begin{DoxyDate}{Date}

\end{DoxyDate}
\begin{DoxyParagraph}{Date:}
2007-\/02-\/15 09:25:46 +0100 (Thu, 15 Feb 2007) 
\end{DoxyParagraph}


Definition in file \hyperlink{Helpers_8c_source}{Helpers.c}.



\subsection{Function Documentation}
\hypertarget{Helpers_8c_a7c6b9e02fb5bcf919c7823d497cab062}{
\index{Helpers.c@{Helpers.c}!C\_\-blockperm@{C\_\-blockperm}}
\index{C\_\-blockperm@{C\_\-blockperm}!Helpers.c@{Helpers.c}}
\subsubsection[{C\_\-blockperm}]{\setlength{\rightskip}{0pt plus 5cm}void C\_\-blockperm (
\begin{DoxyParamCaption}
\item[{SEXP}]{ blocksetup, }
\item[{int $\ast$}]{ ans}
\end{DoxyParamCaption}
)}}
\label{Helpers_8c_a7c6b9e02fb5bcf919c7823d497cab062}
Block permutation 
\begin{DoxyParams}{Parameters}
\item[{\em blocksetup}]as computed by `R\_\-blocksetup' \item[{\em ans}]integer vector \end{DoxyParams}


Definition at line 110 of file Helpers.c.



References C\_\-SampleNoReplace().



Referenced by R\_\-blockperm(), and R\_\-MonteCarloIndependenceTest().



Here is the call graph for this function:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=312pt]{Helpers_8c_a7c6b9e02fb5bcf919c7823d497cab062_cgraph}
\end{center}
\end{figure}


\hypertarget{Helpers_8c_af7c710920d1496d23fdabad9b1d0e18c}{
\index{Helpers.c@{Helpers.c}!C\_\-SampleNoReplace@{C\_\-SampleNoReplace}}
\index{C\_\-SampleNoReplace@{C\_\-SampleNoReplace}!Helpers.c@{Helpers.c}}
\subsubsection[{C\_\-SampleNoReplace}]{\setlength{\rightskip}{0pt plus 5cm}void C\_\-SampleNoReplace (
\begin{DoxyParamCaption}
\item[{int $\ast$}]{ x, }
\item[{int}]{ m, }
\item[{int}]{ k, }
\item[{int $\ast$}]{ ans}
\end{DoxyParamCaption}
)}}
\label{Helpers_8c_af7c710920d1496d23fdabad9b1d0e18c}
compute a permutation of a (random subset of) 0:(m-\/1) 
\begin{DoxyParams}{Parameters}
\item[{\em x}]an integer vector of length m \item[{\em m}]integer \item[{\em k}]integer \item[{\em ans}]an integer vector of length k \end{DoxyParams}


Definition at line 42 of file Helpers.c.



Referenced by C\_\-blockperm().

\hypertarget{Helpers_8c_af1f46cc3e98630497a1ccb21d943fe65}{
\index{Helpers.c@{Helpers.c}!ncol@{ncol}}
\index{ncol@{ncol}!Helpers.c@{Helpers.c}}
\subsubsection[{ncol}]{\setlength{\rightskip}{0pt plus 5cm}int ncol (
\begin{DoxyParamCaption}
\item[{SEXP}]{ x}
\end{DoxyParamCaption}
)}}
\label{Helpers_8c_af1f46cc3e98630497a1ccb21d943fe65}


Definition at line 22 of file Helpers.c.



Referenced by R\_\-ExpectCovarInfluence(), R\_\-ExpectCovarLinearStatistic(), R\_\-kronecker(), R\_\-LinearStatistic(), R\_\-MonteCarloIndependenceTest(), and R\_\-PermutedLinearStatistic().

\hypertarget{Helpers_8c_aeeb672a71c45ead28b7b354414f2427a}{
\index{Helpers.c@{Helpers.c}!nrow@{nrow}}
\index{nrow@{nrow}!Helpers.c@{Helpers.c}}
\subsubsection[{nrow}]{\setlength{\rightskip}{0pt plus 5cm}int nrow (
\begin{DoxyParamCaption}
\item[{SEXP}]{ x}
\end{DoxyParamCaption}
)}}
\label{Helpers_8c_aeeb672a71c45ead28b7b354414f2427a}


Definition at line 11 of file Helpers.c.



Referenced by R\_\-ExpectCovarInfluence(), R\_\-ExpectCovarLinearStatistic(), R\_\-kronecker(), R\_\-LinearStatistic(), R\_\-MonteCarloIndependenceTest(), and R\_\-PermutedLinearStatistic().

\hypertarget{Helpers_8c_ac97588ec77f215433b2933e5632f810d}{
\index{Helpers.c@{Helpers.c}!R\_\-blockperm@{R\_\-blockperm}}
\index{R\_\-blockperm@{R\_\-blockperm}!Helpers.c@{Helpers.c}}
\subsubsection[{R\_\-blockperm}]{\setlength{\rightskip}{0pt plus 5cm}SEXP R\_\-blockperm (
\begin{DoxyParamCaption}
\item[{SEXP}]{ block}
\end{DoxyParamCaption}
)}}
\label{Helpers_8c_ac97588ec77f215433b2933e5632f810d}


Definition at line 139 of file Helpers.c.



References C\_\-blockperm(), and R\_\-blocksetup().



Here is the call graph for this function:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=400pt]{Helpers_8c_ac97588ec77f215433b2933e5632f810d_cgraph}
\end{center}
\end{figure}


\hypertarget{Helpers_8c_a877d7b2378274b833a8c14b27d7a16a1}{
\index{Helpers.c@{Helpers.c}!R\_\-blocksetup@{R\_\-blocksetup}}
\index{R\_\-blocksetup@{R\_\-blocksetup}!Helpers.c@{Helpers.c}}
\subsubsection[{R\_\-blocksetup}]{\setlength{\rightskip}{0pt plus 5cm}SEXP R\_\-blocksetup (
\begin{DoxyParamCaption}
\item[{SEXP}]{ block}
\end{DoxyParamCaption}
)}}
\label{Helpers_8c_a877d7b2378274b833a8c14b27d7a16a1}


Definition at line 56 of file Helpers.c.



Referenced by R\_\-blockperm(), and R\_\-MonteCarloIndependenceTest().

\hypertarget{Helpers_8c_a712dc63828d311dc3be30182fccf6f0f}{
\index{Helpers.c@{Helpers.c}!R\_\-maxstattrafo@{R\_\-maxstattrafo}}
\index{R\_\-maxstattrafo@{R\_\-maxstattrafo}!Helpers.c@{Helpers.c}}
\subsubsection[{R\_\-maxstattrafo}]{\setlength{\rightskip}{0pt plus 5cm}SEXP R\_\-maxstattrafo (
\begin{DoxyParamCaption}
\item[{SEXP}]{ x, }
\item[{SEXP}]{ cutpoints}
\end{DoxyParamCaption}
)}}
\label{Helpers_8c_a712dc63828d311dc3be30182fccf6f0f}


Definition at line 204 of file Helpers.c.

\hypertarget{Helpers_8c_a140f9859faf864060c8a8ae129bc0190}{
\index{Helpers.c@{Helpers.c}!R\_\-MonteCarloIndependenceTest@{R\_\-MonteCarloIndependenceTest}}
\index{R\_\-MonteCarloIndependenceTest@{R\_\-MonteCarloIndependenceTest}!Helpers.c@{Helpers.c}}
\subsubsection[{R\_\-MonteCarloIndependenceTest}]{\setlength{\rightskip}{0pt plus 5cm}SEXP R\_\-MonteCarloIndependenceTest (
\begin{DoxyParamCaption}
\item[{SEXP}]{ x, }
\item[{SEXP}]{ y, }
\item[{SEXP}]{ block, }
\item[{SEXP}]{ B}
\end{DoxyParamCaption}
)}}
\label{Helpers_8c_a140f9859faf864060c8a8ae129bc0190}


Definition at line 152 of file Helpers.c.



References C\_\-blockperm(), C\_\-PermutedLinearStatistic(), ncol(), nrow(), and R\_\-blocksetup().



Here is the call graph for this function:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=400pt]{Helpers_8c_a140f9859faf864060c8a8ae129bc0190_cgraph}
\end{center}
\end{figure}


