Line | |
---|
1 | /* typedefs */ |
---|
2 | |
---|
3 | /* struct to hold info about a .p file */ |
---|
4 | typedef struct |
---|
5 | { |
---|
6 | int longestLineLength; |
---|
7 | int headerLine; |
---|
8 | int firstParamLine; |
---|
9 | int numRows; |
---|
10 | int numColumns; |
---|
11 | } SumpFileInfo; |
---|
12 | |
---|
13 | /* struct to hold info about a model probability */ |
---|
14 | typedef struct |
---|
15 | { |
---|
16 | int index; |
---|
17 | double prob; |
---|
18 | } ModelProb; |
---|
19 | |
---|
20 | /* struct to hold a parameter sample, possibly from multiple files */ |
---|
21 | typedef struct { |
---|
22 | MrBFlt **values; |
---|
23 | } ParameterSample; |
---|
24 | |
---|
25 | /* function declarations */ |
---|
26 | int AllocateParameterSamples (ParameterSample **parameterSamples, int numRuns, int numRows, int numColumns); |
---|
27 | int DoSump (void); |
---|
28 | int DoSumpParm (char *parmName, char *tkn); |
---|
29 | int DoSumSs (void); |
---|
30 | int DoSumSsParm (char *parmName, char *tkn); |
---|
31 | int ExamineSumpFile (char *fileName, SumpFileInfo *fileInfo, char ***headerNames, int *nHeaders); |
---|
32 | int FindHeader (char *token, char **headerNames, int nHeaders, int *index); |
---|
33 | void FreeParameterSamples (ParameterSample *parameterSamples); |
---|
34 | int GetHeaders (char ***headerNames, char *headerLine, int *nHeaders); |
---|
35 | int PrintPlot (MrBFlt *xVals, MrBFlt *yVals, int nSamples); |
---|
36 | int ReadParamSamples (char *fileName, SumpFileInfo *fileInfo, ParameterSample *parameterSamples, int runNo); |
---|
37 | |
---|
38 | |
---|
Note: See
TracBrowser
for help on using the repository browser.