Main Page | Directories | File List | File Members | Related Pages

TreeGrow.c File Reference

#include "party.h"

Include dependency graph for TreeGrow.c:

Go to the source code of this file.

Functions

void C_TreeGrow (SEXP node, SEXP learnsample, SEXP fitmem, SEXP controls, int *where, int *nodenum, int depth)
SEXP R_TreeGrow (SEXP learnsample, SEXP weights, SEXP fitmem, SEXP controls, SEXP where)


Detailed Description

The tree growing recursion

Author:
Author
hothorn
Date:
Date
2006-02-23 16:11:21 +0100 (Thu, 23 Feb 2006)

Definition in file TreeGrow.c.


Function Documentation

void C_TreeGrow SEXP  node,
SEXP  learnsample,
SEXP  fitmem,
SEXP  controls,
int *  where,
int *  nodenum,
int  depth
 

The main tree growing function, handles the recursion.

Parameters:
node a list representing the current node
learnsample an object of class `LearningSample'
fitmem an object of class `TreeFitMemory'
controls an object of class `TreeControl'
where a pointer to an integer vector of n-elements
nodenum a pointer to a integer vector of length 1
depth an integer giving the depth of the current node

Definition at line 23 of file TreeGrow.c.

References C_Node(), C_splitnode(), C_splitsurrogate(), C_surrogates(), C_TreeGrow(), check_depth(), get_maxsurrogate(), get_nobs(), get_splitctrl(), get_stump(), get_tgctrl(), S3get_leftnode(), S3get_nodeterminal(), S3get_nodeweights(), S3get_rightnode(), and S3set_nodeID().

Referenced by C_TreeGrow(), R_Ensemble(), and R_TreeGrow().

Here is the call graph for this function:

SEXP R_TreeGrow SEXP  learnsample,
SEXP  weights,
SEXP  fitmem,
SEXP  controls,
SEXP  where
 

R-interface to C_TreeGrow

Parameters:
learnsample an object of class `LearningSample'
weights a vector of case weights
fitmem an object of class `TreeFitMemory'
controls an object of class `TreeControl'
where a vector of node indices for each observation

Definition at line 80 of file TreeGrow.c.

References C_init_node(), C_TreeGrow(), get_maxsurrogate(), get_ninputs(), get_nobs(), get_splitctrl(), ncol(), NODE_LENGTH, PL2_jointtransfSym, PL2_responsesSym, and S3get_nodeweights().

Here is the call graph for this function:


Generated on Fri Aug 25 14:32:23 2006 for party by  doxygen 1.4.4