Diff of /partyMod/src/party.h [000000] .. [fbf06f]

Switch to unified view

a b/partyMod/src/party.h
1
2
/* the global header file for the `party' package */
3
4
/* include R header files */
5
6
#include <R.h>
7
#include <Rmath.h>
8
#include <Rinternals.h>
9
#include <Rdefines.h>
10
#include <R_ext/Applic.h> /* for dgemm */
11
#include <R_ext/Lapack.h> /* for dgesdd */
12
13
/* include private header files: this need to be restricted */
14
15
#include "Classes.h"
16
#include "Utils.h"
17
#include "mvt.h"
18
#include "LinearStatistic.h"
19
#include "TestStatistic.h"
20
#include "Distributions.h"
21
#include "Convenience.h"
22
#include "S3Classes.h"
23
#include "IndependenceTest.h"
24
#include "Splits.h"
25
#include "Node.h"
26
#include "Predict.h"
27
#include "SurrogateSplits.h"
28
#include "TreeGrow.h"
29
30
/* constants, basically the length of lists representing S3 classes
31
   and the position of certain elements  */
32
33
/* S3 list elements in `splittingNode's */
34
#define S3_NODEID       0    /* nodeID */
35
#define S3_WEIGHTS      1    /* weights */
36
#define S3_CRITERION        2    /* criterion */
37
#define S3_TERMINAL     3    /* terminal */
38
#define S3_PSPLIT       4    /* psplit */
39
#define S3_SSPLIT       5    /* ssplit */
40
#define S3_PREDICTION       6    /* prediction */
41
#define S3_LEFT         7    /* left */
42
#define S3_RIGHT        8    /* right */
43
#define S3_SUMWEIGHTS           9    /* sum of weights in this node */
44
#define NODE_LENGTH     10   /* 9 elements in total */
45
46
/* S3 list elements in `criterion' element of `SplittingNode's */
47
#define S3_STATISTICS       0    /* statistics */
48
#define S3_iCRITERION       1    /* criterion */
49
#define S3_MAXCRITERION     2    /* max(criterion) */
50
#define CRITERION_LENGTH    3    /* 3 elements in total */
51
52
/* S3 list elements in `orderedSplit's or `nominalSplit's */
53
#define S3_VARIABLEID       0    /* variableID */
54
#define S3_ORDERED      1    /* ordered */
55
#define S3_SPLITPOINT       2    /* splitpoint */
56
#define S3_SPLITSTATISTICS  3    /* splitstatistics */
57
#define S3_TOLEFT       4    /* toleft */
58
#define S3_TABLE                5    /* table for nominal splits */
59
#define SPLIT_LENGTH        6    /* 6 elements in total */
60
61
/* type of test statistic */
62
#define MAXABS          1
63
#define QUADFORM        2
64
65
/* type of criterion to be _maximized_! */
66
#define BONFERRONI      1
67
#define MONTECARLO      2
68
#define AGGREGATED      3
69
#define UNIVARIATE      4
70
#define TESTSTATISTIC       5