1 | #include <stdio.h> |
---|
2 | #include <stdio.h> |
---|
3 | #include <string.h> |
---|
4 | |
---|
5 | #ifdef __i386__ |
---|
6 | #include "libpge32.h" |
---|
7 | #else |
---|
8 | #include "libpge.h" |
---|
9 | #endif |
---|
10 | |
---|
11 | void initTreeParams(char* Roots, char* Nodes, char* NonTrig, char* Leafs, GoInt UsableVarsN, GoInt MaxSize, GoInt MinSize, GoInt MaxDepth, GoInt MinDepth) { |
---|
12 | InitTreeParams(Roots, Nodes, NonTrig, Leafs, UsableVarsN, MaxSize, MinSize, MaxDepth, MinDepth); |
---|
13 | } |
---|
14 | |
---|
15 | void addTrainData(char* indepNames, char* depndNames, void* matrix, GoInt nEntries) { |
---|
16 | AddTrainData(indepNames, depndNames, matrix, nEntries); |
---|
17 | } |
---|
18 | |
---|
19 | void addTestData(char* indepNames, char* depndNames, void* matrix, GoInt nEntries) { |
---|
20 | AddTestData(indepNames, depndNames, matrix, nEntries); |
---|
21 | } |
---|
22 | |
---|
23 | char* getStepResult(GoInt* testscore, GoInt* ncoeff) { |
---|
24 | return GetStepResult(testscore, ncoeff); |
---|
25 | } |
---|
26 | |
---|
27 | void initSearch(GoInt maxGen, GoInt pgeRptEpoch, GoInt pgeRptCount, GoInt pgeArchiveCap, GoInt peelCnt, GoInt evalrCount, GoFloat64 zeroEpsilon, char* initMethod, char* growMethod, GoInt sortType) { |
---|
28 | InitSearch(maxGen, pgeRptEpoch, pgeRptCount, pgeArchiveCap, peelCnt, evalrCount, zeroEpsilon, initMethod, growMethod, sortType); |
---|
29 | } |
---|
30 | |
---|
31 | void initProblem(char* Name, GoInt MaxIter, GoFloat64 HitRatio, GoInt SearchVar, char* ProblemTypeString, GoInt numProcs) { |
---|
32 | InitProblem(Name, MaxIter, HitRatio, SearchVar, ProblemTypeString, numProcs); |
---|
33 | } |
---|
34 | |
---|
35 | int getBestResults() { |
---|
36 | return GetBestResults(); |
---|
37 | } |
---|
38 | |
---|
39 | GoFloat64 getCoeffResult() { |
---|
40 | return GetCoeffResult(); |
---|
41 | } |
---|
42 | |
---|
43 | GoInt getMaxIterW() { |
---|
44 | return GetMaxIterW(); |
---|
45 | } |
---|
46 | |
---|
47 | void setMaxIterW(GoInt iter) { |
---|
48 | SetMaxIterW(iter); |
---|
49 | } |
---|
50 | |
---|
51 | void setPeelCountW(GoInt cnt) { |
---|
52 | SetPeelCountW(cnt); |
---|
53 | } |
---|
54 | |
---|
55 | void setInitMethodW(GoString init) { |
---|
56 | SetInitMethodW(init); |
---|
57 | } |
---|
58 | |
---|
59 | void setGrowMethodW(GoString grow) { |
---|
60 | SetGrowMethodW(grow); |
---|
61 | } |
---|
62 | |
---|
63 | void setEvalrCountW(GoInt cnt) { |
---|
64 | SetEvalrCountW(cnt); |
---|
65 | } |
---|
66 | |
---|
67 | void evaluateW() { |
---|
68 | EvaluateW(); |
---|
69 | } |
---|
70 | |
---|
71 | void runW() { |
---|
72 | RunW(); |
---|
73 | } |
---|
74 | |
---|
75 | void loopW() { |
---|
76 | LoopW(); |
---|
77 | } |
---|
78 | |
---|
79 | int stepW() { |
---|
80 | return StepW(); |
---|
81 | } |
---|
82 | |
---|
83 | void cleanW() { |
---|
84 | CleanW(); |
---|
85 | } |
---|