Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2929_PrioritizedGrammarEnumeration/HeuristicLab.Algorithms.DataAnalysis.PGE/3.3/src/go-pge/pge.c @ 17399

Last change on this file since 17399 was 16666, checked in by hmaislin, 6 years ago

#2929: Modified make / folder structure to build original app, added x86 dll

File size: 1.9 KB
Line 
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
11void 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
15void addTrainData(char* indepNames, char* depndNames, void* matrix, GoInt nEntries) {
16  AddTrainData(indepNames, depndNames, matrix, nEntries);
17}
18
19void addTestData(char* indepNames, char* depndNames, void* matrix, GoInt nEntries) {
20  AddTestData(indepNames, depndNames, matrix, nEntries);
21}
22
23char* getStepResult(GoInt* testscore, GoInt* ncoeff) {
24  return GetStepResult(testscore, ncoeff);
25}
26
27void 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
31void initProblem(char* Name, GoInt MaxIter, GoFloat64 HitRatio, GoInt SearchVar, char* ProblemTypeString, GoInt numProcs) {
32   InitProblem(Name, MaxIter, HitRatio, SearchVar, ProblemTypeString, numProcs);
33}
34
35int getBestResults() {
36  return GetBestResults();
37}
38
39GoFloat64 getCoeffResult() {
40  return GetCoeffResult();
41}
42
43GoInt getMaxIterW() {
44  return GetMaxIterW();
45}
46
47void setMaxIterW(GoInt iter) {
48  SetMaxIterW(iter);
49}
50
51void setPeelCountW(GoInt cnt) {
52  SetPeelCountW(cnt);
53}
54
55void setInitMethodW(GoString init) {
56  SetInitMethodW(init);
57}
58
59void setGrowMethodW(GoString grow) {
60  SetGrowMethodW(grow);
61}
62
63void setEvalrCountW(GoInt cnt) {
64  SetEvalrCountW(cnt);
65}
66
67void evaluateW() {
68  EvaluateW();
69}
70
71void runW() {
72  RunW();
73}
74
75void loopW() {
76  LoopW();
77}
78
79int stepW() {
80  return StepW();
81}
82
83void cleanW() {
84  CleanW();
85}
Note: See TracBrowser for help on using the repository browser.