\hypertarget{Node_8c}{
\section{Node.c File Reference}
\label{Node_8c}\index{Node.c@{Node.c}}
}
{\tt \#include \char`\"{}party.h\char`\"{}}\par


Include dependency graph for Node.c:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=156pt]{Node_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{CompactItemize}
\item 
void \hyperlink{Node_8c_a0}{C\_\-prediction} (const double $\ast$y, int n, int q, const double $\ast$weights, const double sweights, double $\ast$ans)
\item 
void \hyperlink{Node_8c_a1}{C\_\-Node} (SEXP node, SEXP learnsample, SEXP weights, SEXP fitmem, SEXP controls, int TERMINAL)
\item 
SEXP \hyperlink{Node_8c_a2}{R\_\-Node} (SEXP learnsample, SEXP weights, SEXP fitmem, SEXP controls)
\end{CompactItemize}


\subsection{Detailed Description}
Node computations

\begin{Desc}
\item[Author:]\begin{Desc}
\item[Author]hothorn \end{Desc}
\end{Desc}
\begin{Desc}
\item[Date:]\begin{Desc}
\item[Date]2005-10-19 16:40:43 +0200 (Wed, 19 Oct 2005) \end{Desc}
\end{Desc}


Definition in file \hyperlink{Node_8c-source}{Node.c}.

\subsection{Function Documentation}
\hypertarget{Node_8c_a1}{
\index{Node.c@{Node.c}!C_Node@{C\_\-Node}}
\index{C_Node@{C\_\-Node}!Node.c@{Node.c}}
\subsubsection[C\_\-Node]{\setlength{\rightskip}{0pt plus 5cm}void C\_\-Node (SEXP {\em node}, SEXP {\em learnsample}, SEXP {\em weights}, SEXP {\em fitmem}, SEXP {\em controls}, int {\em TERMINAL})}}
\label{Node_8c_a1}


The main function for all node computations \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em node}]an initialized node (an S3 object!) \item[{\em learnsample}]an object of class `Learning\-Sample' \item[{\em weights}]case weights \item[{\em fitmem}]an object of class `Tree\-Fit\-Memory' \item[{\em controls}]an object of class `Tree\-Control' \item[{\em TERMINAL}]logical indicating if this node will be a terminal node\end{description}
\end{Desc}


Definition at line 48 of file Node.c.

References C\_\-Global\-Test(), C\_\-init\_\-nominalsplit(), C\_\-init\_\-orderedsplit(), C\_\-max(), C\_\-prediction(), C\_\-split(), C\_\-splitcategorical(), C\_\-standardize(), C\_\-whichmax(), get\_\-dimension(), get\_\-gtctrl(), get\_\-levels(), get\_\-mincriterion(), get\_\-minsplit(), get\_\-ninputs(), get\_\-nobs(), get\_\-ordering(), get\_\-savesplitstats(), get\_\-splitctrl(), get\_\-splitstatistics(), get\_\-tgctrl(), get\_\-tol(), get\_\-transformation(), get\_\-varctrl(), get\_\-variable(), get\_\-varmemory(), get\_\-weights(), has\_\-missings(), is\_\-nominal(), is\_\-ordinal(), ncol(), PL2\_\-covariance\-Sym, PL2\_\-expcovinf\-Sym, PL2\_\-expectation\-Sym, PL2\_\-inputs\-Sym, PL2\_\-jointtransf\-Sym, PL2\_\-linearstatistic\-Sym, PL2\_\-linexpcov2sample\-Sym, PL2\_\-responses\-Sym, PL2\_\-scores\-Sym, PL2\_\-sumweights\-Sym, S3get\_\-criterion(), S3get\_\-maxcriterion(), S3get\_\-prediction(), S3get\_\-primarysplit(), S3get\_\-splitpoint(), S3get\_\-splitstatistics(), S3get\_\-table(), S3get\_\-teststat(), S3set\_\-nodeterminal(), and S3set\_\-variable\-ID().

Referenced by C\_\-Tree\-Grow(), and R\_\-Node().

Here is the call graph for this function:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=228pt]{Node_8c_a1_cgraph}
\end{center}
\end{figure}
\hypertarget{Node_8c_a0}{
\index{Node.c@{Node.c}!C_prediction@{C\_\-prediction}}
\index{C_prediction@{C\_\-prediction}!Node.c@{Node.c}}
\subsubsection[C\_\-prediction]{\setlength{\rightskip}{0pt plus 5cm}void C\_\-prediction (const double $\ast$ {\em y}, int {\em n}, int {\em q}, const double $\ast$ {\em weights}, const double {\em sweights}, double $\ast$ {\em ans})}}
\label{Node_8c_a0}


Compute prediction of a node \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em y}]the response variable (raw numeric values or dummy encoded factor) \item[{\em n}]number of observations \item[{\em q}]number of columns of y \item[{\em weights}]case weights \item[{\em sweights}]sum of case weights \item[{\em ans}]return value; the q-dimensional predictions\end{description}
\end{Desc}


Definition at line 22 of file Node.c.

Referenced by C\_\-Node().\hypertarget{Node_8c_a2}{
\index{Node.c@{Node.c}!R_Node@{R\_\-Node}}
\index{R_Node@{R\_\-Node}!Node.c@{Node.c}}
\subsubsection[R\_\-Node]{\setlength{\rightskip}{0pt plus 5cm}SEXP R\_\-Node (SEXP {\em learnsample}, SEXP {\em weights}, SEXP {\em fitmem}, SEXP {\em controls})}}
\label{Node_8c_a2}


R-interface to C\_\-Node \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em learnsample}]an object of class `Learning\-Sample' \item[{\em weights}]case weights \item[{\em fitmem}]an object of class `Tree\-Fit\-Memory' \item[{\em controls}]an object of class `Tree\-Control'\end{description}
\end{Desc}


Definition at line 233 of file Node.c.

References C\_\-init\_\-node(), C\_\-Node(), get\_\-maxsurrogate(), get\_\-ninputs(), get\_\-nobs(), get\_\-splitctrl(), ncol(), NODE\_\-LENGTH, PL2\_\-jointtransf\-Sym, and PL2\_\-responses\-Sym.

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