Node.c File Reference

#include "party.h"

Include dependency graph for Node.c:

Go to the source code of this file.

Functions

void C_prediction (const double *y, int n, int q, const double *weights, const double sweights, double *ans)
void C_Node (SEXP node, SEXP learnsample, SEXP weights, SEXP fitmem, SEXP controls, int TERMINAL)
SEXP R_Node (SEXP learnsample, SEXP weights, SEXP fitmem, SEXP controls)


Detailed Description

Node computations

Author:
Author
hothorn
Date:
Date
2007-09-26 14:44:59 +0200 (Wed, 26 Sep 2007)

Definition in file Node.c.


Function Documentation

void C_Node ( SEXP  node,
SEXP  learnsample,
SEXP  weights,
SEXP  fitmem,
SEXP  controls,
int  TERMINAL 
)

void C_prediction ( const double *  y,
int  n,
int  q,
const double *  weights,
const double  sweights,
double *  ans 
)

Compute prediction of a node

Parameters:
y the response variable (raw numeric values or dummy encoded factor)
n number of observations
q number of columns of y
weights case weights
sweights sum of case weights
ans return value; the q-dimensional predictions

Definition at line 22 of file Node.c.

Referenced by C_Node().

SEXP R_Node ( SEXP  learnsample,
SEXP  weights,
SEXP  fitmem,
SEXP  controls 
)

R-interface to C_Node

Parameters:
learnsample an object of class `LearningSample'
weights case weights
fitmem an object of class `TreeFitMemory'
controls an object of class `TreeControl'

Definition at line 227 of file Node.c.

References C_init_node(), C_Node(), get_maxsurrogate(), get_ninputs(), get_nobs(), get_predict_trafo(), get_splitctrl(), ncol(), NODE_LENGTH, and PL2_responsesSym.

Here is the call graph for this function:


Generated on Wed Oct 15 10:51:57 2008 for party by  doxygen 1.5.5