\hypertarget{vandeWiel_8c}{
\section{vandeWiel.c File Reference}
\label{vandeWiel_8c}\index{vandeWiel.c@{vandeWiel.c}}
}
{\ttfamily \#include $<$R.h$>$}\par
{\ttfamily \#include $<$Rmath.h$>$}\par
{\ttfamily \#include $<$Rdefines.h$>$}\par
Include dependency graph for vandeWiel.c:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=270pt]{vandeWiel_8c__incl}
\end{center}
\end{figure}
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structcelW}{celW}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
double \hyperlink{vandeWiel_8c_add09844ac40346e216f503f95e644970}{binomi} (int m, int n)
\item 
\hyperlink{structcelW}{celW} $\ast$$\ast$ \hyperlink{vandeWiel_8c_a03d7f636d17008a6fbe230458a92ddba}{reserveW} (int a, int b)
\item 
void \hyperlink{vandeWiel_8c_af72cc4501998ae01067d5555382b1609}{FreeW} (int a, \hyperlink{structcelW}{celW} $\ast$$\ast$W)
\item 
void \hyperlink{vandeWiel_8c_a402c3e72a2fa3d600d4a4e8ace9f040b}{initW} (int a, int b, \hyperlink{structcelW}{celW} $\ast$$\ast$W)
\item 
void \hyperlink{vandeWiel_8c_ae1d7e7e209f5b99745c8bca03057f761}{mult} (\hyperlink{structcelW}{celW} $\ast$tem, int a, int b, int rank, double $\ast$rs)
\item 
void \hyperlink{vandeWiel_8c_a1ab2513e2af31152aeacffb5c770c7f9}{plus} (\hyperlink{structcelW}{celW} $\ast$$\ast$W, \hyperlink{structcelW}{celW} $\ast$tempie, int a, int b, double tol)
\item 
void \hyperlink{vandeWiel_8c_a2f117e88849518e50d7d0eef3af07bf0}{mymergesort} (\hyperlink{structcelW}{celW} temptw, long tijd)
\item 
void \hyperlink{vandeWiel_8c_a6bee1e9d657a3174d5a2ecafac2b1d6e}{fillcell} (\hyperlink{structcelW}{celW} $\ast$$\ast$W, int i1, int j1, int r, double $\ast$rs, double tol)
\item 
void \hyperlink{vandeWiel_8c_ad0195ffa22342dfadee0abeb564931dc}{mirrorW} (\hyperlink{structcelW}{celW} $\ast$$\ast$W, int ce, int bep, int start, double $\ast$rs)
\item 
void \hyperlink{vandeWiel_8c_ab36f32483d67f870c4dca34aac14f5b9}{makeW} (\hyperlink{structcelW}{celW} $\ast$$\ast$W, int a, int b, int start, double $\ast$rs, double tol)
\item 
void \hyperlink{vandeWiel_8c_a76539410f65d0d4c5105bacf1b32f093}{cumulcoef} (\hyperlink{structcelW}{celW} $\ast$$\ast$W, int i1, int j1)
\item 
double \hyperlink{vandeWiel_8c_a69a4013a15a104d5a415806f79e189bd}{numbersmall} (int c, int b, double ob, \hyperlink{structcelW}{celW} $\ast$$\ast$W1, \hyperlink{structcelW}{celW} $\ast$$\ast$W2, double tol)
\item 
SEXP \hyperlink{vandeWiel_8c_a18f96560e9861316db1121e8fe69ef07}{R\_\-split\_\-up\_\-2sample} (SEXP scores, SEXP m, SEXP obs, SEXP tol)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Exact Distribution of Two-\/Sample Permutation Tests van de Wiel split-\/up Algorithm

Author: Mark van de Wiel (2001-\/2005) $<$\href{mailto:m.a.v.d.wiel@TUE.nl}{\tt m.a.v.d.wiel@TUE.nl}$>$ with modifications for R by Torsten Hothorn $<$\href{mailto:Torsten.Hothorn@R-project.org}{\tt Torsten.Hothorn@R-\/project.org}$>$

\begin{DoxyAuthor}{Author}

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

\end{DoxyDate}
\begin{DoxyParagraph}{Date:}
2009-\/10-\/30 18:34:34 +0100 (Fri, 30 Oct 2009) 
\end{DoxyParagraph}


Definition in file \hyperlink{vandeWiel_8c_source}{vandeWiel.c}.



\subsection{Function Documentation}
\hypertarget{vandeWiel_8c_add09844ac40346e216f503f95e644970}{
\index{vandeWiel.c@{vandeWiel.c}!binomi@{binomi}}
\index{binomi@{binomi}!vandeWiel.c@{vandeWiel.c}}
\subsubsection[{binomi}]{\setlength{\rightskip}{0pt plus 5cm}double binomi (
\begin{DoxyParamCaption}
\item[{int}]{ m, }
\item[{int}]{ n}
\end{DoxyParamCaption}
)}}
\label{vandeWiel_8c_add09844ac40346e216f503f95e644970}


Definition at line 37 of file vandeWiel.c.



Referenced by R\_\-split\_\-up\_\-2sample(), and reserveW().

\hypertarget{vandeWiel_8c_a76539410f65d0d4c5105bacf1b32f093}{
\index{vandeWiel.c@{vandeWiel.c}!cumulcoef@{cumulcoef}}
\index{cumulcoef@{cumulcoef}!vandeWiel.c@{vandeWiel.c}}
\subsubsection[{cumulcoef}]{\setlength{\rightskip}{0pt plus 5cm}void cumulcoef (
\begin{DoxyParamCaption}
\item[{{\bf celW} $\ast$$\ast$}]{ W, }
\item[{int}]{ i1, }
\item[{int}]{ j1}
\end{DoxyParamCaption}
)}}
\label{vandeWiel_8c_a76539410f65d0d4c5105bacf1b32f093}


Definition at line 316 of file vandeWiel.c.



References celW::c, and celW::length.



Referenced by R\_\-split\_\-up\_\-2sample().

\hypertarget{vandeWiel_8c_a6bee1e9d657a3174d5a2ecafac2b1d6e}{
\index{vandeWiel.c@{vandeWiel.c}!fillcell@{fillcell}}
\index{fillcell@{fillcell}!vandeWiel.c@{vandeWiel.c}}
\subsubsection[{fillcell}]{\setlength{\rightskip}{0pt plus 5cm}void fillcell (
\begin{DoxyParamCaption}
\item[{{\bf celW} $\ast$$\ast$}]{ W, }
\item[{int}]{ i1, }
\item[{int}]{ j1, }
\item[{int}]{ r, }
\item[{double $\ast$}]{ rs, }
\item[{double}]{ tol}
\end{DoxyParamCaption}
)}}
\label{vandeWiel_8c_a6bee1e9d657a3174d5a2ecafac2b1d6e}


Definition at line 211 of file vandeWiel.c.



References celW::c, celW::length, mult(), mymergesort(), plus(), and celW::x.



Referenced by makeW().



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


\hypertarget{vandeWiel_8c_af72cc4501998ae01067d5555382b1609}{
\index{vandeWiel.c@{vandeWiel.c}!FreeW@{FreeW}}
\index{FreeW@{FreeW}!vandeWiel.c@{vandeWiel.c}}
\subsubsection[{FreeW}]{\setlength{\rightskip}{0pt plus 5cm}void FreeW (
\begin{DoxyParamCaption}
\item[{int}]{ a, }
\item[{{\bf celW} $\ast$$\ast$}]{ W}
\end{DoxyParamCaption}
)}}
\label{vandeWiel_8c_af72cc4501998ae01067d5555382b1609}


Definition at line 81 of file vandeWiel.c.



Referenced by R\_\-split\_\-up\_\-2sample().

\hypertarget{vandeWiel_8c_a402c3e72a2fa3d600d4a4e8ace9f040b}{
\index{vandeWiel.c@{vandeWiel.c}!initW@{initW}}
\index{initW@{initW}!vandeWiel.c@{vandeWiel.c}}
\subsubsection[{initW}]{\setlength{\rightskip}{0pt plus 5cm}void initW (
\begin{DoxyParamCaption}
\item[{int}]{ a, }
\item[{int}]{ b, }
\item[{{\bf celW} $\ast$$\ast$}]{ W}
\end{DoxyParamCaption}
)}}
\label{vandeWiel_8c_a402c3e72a2fa3d600d4a4e8ace9f040b}


Definition at line 91 of file vandeWiel.c.



References celW::c, celW::length, and celW::x.



Referenced by R\_\-split\_\-up\_\-2sample().

\hypertarget{vandeWiel_8c_ab36f32483d67f870c4dca34aac14f5b9}{
\index{vandeWiel.c@{vandeWiel.c}!makeW@{makeW}}
\index{makeW@{makeW}!vandeWiel.c@{vandeWiel.c}}
\subsubsection[{makeW}]{\setlength{\rightskip}{0pt plus 5cm}void makeW (
\begin{DoxyParamCaption}
\item[{{\bf celW} $\ast$$\ast$}]{ W, }
\item[{int}]{ a, }
\item[{int}]{ b, }
\item[{int}]{ start, }
\item[{double $\ast$}]{ rs, }
\item[{double}]{ tol}
\end{DoxyParamCaption}
)}}
\label{vandeWiel_8c_ab36f32483d67f870c4dca34aac14f5b9}


Definition at line 281 of file vandeWiel.c.



References fillcell(), and mirrorW().



Referenced by R\_\-split\_\-up\_\-2sample().



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


\hypertarget{vandeWiel_8c_ad0195ffa22342dfadee0abeb564931dc}{
\index{vandeWiel.c@{vandeWiel.c}!mirrorW@{mirrorW}}
\index{mirrorW@{mirrorW}!vandeWiel.c@{vandeWiel.c}}
\subsubsection[{mirrorW}]{\setlength{\rightskip}{0pt plus 5cm}void mirrorW (
\begin{DoxyParamCaption}
\item[{{\bf celW} $\ast$$\ast$}]{ W, }
\item[{int}]{ ce, }
\item[{int}]{ bep, }
\item[{int}]{ start, }
\item[{double $\ast$}]{ rs}
\end{DoxyParamCaption}
)}}
\label{vandeWiel_8c_ad0195ffa22342dfadee0abeb564931dc}


Definition at line 257 of file vandeWiel.c.



References celW::c, celW::length, and celW::x.



Referenced by makeW().

\hypertarget{vandeWiel_8c_ae1d7e7e209f5b99745c8bca03057f761}{
\index{vandeWiel.c@{vandeWiel.c}!mult@{mult}}
\index{mult@{mult}!vandeWiel.c@{vandeWiel.c}}
\subsubsection[{mult}]{\setlength{\rightskip}{0pt plus 5cm}void mult (
\begin{DoxyParamCaption}
\item[{{\bf celW} $\ast$}]{ tem, }
\item[{int}]{ a, }
\item[{int}]{ b, }
\item[{int}]{ rank, }
\item[{double $\ast$}]{ rs}
\end{DoxyParamCaption}
)}}
\label{vandeWiel_8c_ae1d7e7e209f5b99745c8bca03057f761}


Definition at line 106 of file vandeWiel.c.



References celW::length.



Referenced by fillcell().

\hypertarget{vandeWiel_8c_a2f117e88849518e50d7d0eef3af07bf0}{
\index{vandeWiel.c@{vandeWiel.c}!mymergesort@{mymergesort}}
\index{mymergesort@{mymergesort}!vandeWiel.c@{vandeWiel.c}}
\subsubsection[{mymergesort}]{\setlength{\rightskip}{0pt plus 5cm}void mymergesort (
\begin{DoxyParamCaption}
\item[{{\bf celW}}]{ temptw, }
\item[{long}]{ tijd}
\end{DoxyParamCaption}
)}}
\label{vandeWiel_8c_a2f117e88849518e50d7d0eef3af07bf0}


Definition at line 159 of file vandeWiel.c.



References celW::c, celW::length, and celW::x.



Referenced by fillcell().

\hypertarget{vandeWiel_8c_a69a4013a15a104d5a415806f79e189bd}{
\index{vandeWiel.c@{vandeWiel.c}!numbersmall@{numbersmall}}
\index{numbersmall@{numbersmall}!vandeWiel.c@{vandeWiel.c}}
\subsubsection[{numbersmall}]{\setlength{\rightskip}{0pt plus 5cm}double numbersmall (
\begin{DoxyParamCaption}
\item[{int}]{ c, }
\item[{int}]{ b, }
\item[{double}]{ ob, }
\item[{{\bf celW} $\ast$$\ast$}]{ W1, }
\item[{{\bf celW} $\ast$$\ast$}]{ W2, }
\item[{double}]{ tol}
\end{DoxyParamCaption}
)}}
\label{vandeWiel_8c_a69a4013a15a104d5a415806f79e189bd}


Definition at line 335 of file vandeWiel.c.



References celW::c, celW::length, and celW::x.



Referenced by R\_\-split\_\-up\_\-2sample().

\hypertarget{vandeWiel_8c_a1ab2513e2af31152aeacffb5c770c7f9}{
\index{vandeWiel.c@{vandeWiel.c}!plus@{plus}}
\index{plus@{plus}!vandeWiel.c@{vandeWiel.c}}
\subsubsection[{plus}]{\setlength{\rightskip}{0pt plus 5cm}void plus (
\begin{DoxyParamCaption}
\item[{{\bf celW} $\ast$$\ast$}]{ W, }
\item[{{\bf celW} $\ast$}]{ tempie, }
\item[{int}]{ a, }
\item[{int}]{ b, }
\item[{double}]{ tol}
\end{DoxyParamCaption}
)}}
\label{vandeWiel_8c_a1ab2513e2af31152aeacffb5c770c7f9}


Definition at line 120 of file vandeWiel.c.



References celW::c, celW::length, and celW::x.



Referenced by fillcell().

\hypertarget{vandeWiel_8c_a18f96560e9861316db1121e8fe69ef07}{
\index{vandeWiel.c@{vandeWiel.c}!R\_\-split\_\-up\_\-2sample@{R\_\-split\_\-up\_\-2sample}}
\index{R\_\-split\_\-up\_\-2sample@{R\_\-split\_\-up\_\-2sample}!vandeWiel.c@{vandeWiel.c}}
\subsubsection[{R\_\-split\_\-up\_\-2sample}]{\setlength{\rightskip}{0pt plus 5cm}SEXP R\_\-split\_\-up\_\-2sample (
\begin{DoxyParamCaption}
\item[{SEXP}]{ scores, }
\item[{SEXP}]{ m, }
\item[{SEXP}]{ obs, }
\item[{SEXP}]{ tol}
\end{DoxyParamCaption}
)}}
\label{vandeWiel_8c_a18f96560e9861316db1121e8fe69ef07}


Definition at line 377 of file vandeWiel.c.



References binomi(), cumulcoef(), FreeW(), initW(), makeW(), numbersmall(), and reserveW().



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


\hypertarget{vandeWiel_8c_a03d7f636d17008a6fbe230458a92ddba}{
\index{vandeWiel.c@{vandeWiel.c}!reserveW@{reserveW}}
\index{reserveW@{reserveW}!vandeWiel.c@{vandeWiel.c}}
\subsubsection[{reserveW}]{\setlength{\rightskip}{0pt plus 5cm}{\bf celW}$\ast$$\ast$ reserveW (
\begin{DoxyParamCaption}
\item[{int}]{ a, }
\item[{int}]{ b}
\end{DoxyParamCaption}
)}}
\label{vandeWiel_8c_a03d7f636d17008a6fbe230458a92ddba}


Definition at line 51 of file vandeWiel.c.



References binomi(), celW::c, and celW::x.



Referenced by R\_\-split\_\-up\_\-2sample().



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


