|
TPCCLIB
|
PAR struct processing. More...
#include "tpcclibConfig.h"#include <stdio.h>#include <stdlib.h>#include <math.h>#include <time.h>#include <string.h>#include "tpcextensions.h"#include "tpcmodels.h"#include "tpcift.h"#include "tpcpar.h"Go to the source code of this file.
Functions | |
| void | parInit (PAR *par) |
| void | parrInit (PARR *parr) |
| void | parnInit (PARN *parn) |
| void | parFree (PAR *par) |
| void | parrFree (PARR *parr) |
| int | parAllocate (PAR *par, int parNr, int tacNr) |
| int | parrAllocate (PARR *parr, int parNr) |
| int | parAllocateMore (PAR *par, int parNr, int tacNr) |
| int | parIsWSS (PAR *par) |
| int | parIsFitRange (PAR *par) |
| int | parIsModel (PAR *par) |
| int | parSDWithPar (PAR *par, int pi) |
| int | parCLWithPar (PAR *par, int pi) |
| int | parIsFitNr (PAR *par) |
| int | parIsDataNr (PAR *par) |
| char * | parIsOptcrit (PAR *par) |
| char * | parIsStudyNr (PAR *par) |
| int | parSetStudyNr (PAR *par, const char *s) |
| void | parEnsureNames (PAR *d) |
| int | parDeletePar (PAR *par, int pi) |
| int | parDeleteTAC (PAR *par, int ti) |
| int parAllocate | ( | PAR * | par, |
| int | parNr, | ||
| int | tacNr ) |
Allocate memory for PAR data.
Any previous contents are deleted.
| par | Pointer to initiated PAR struct data; any old contents are deleted. tacNr and parNr inside the struct are set to or kept at zero. |
| parNr | Nr of parameters to allocate |
| tacNr | Nr of parameter sets (TACs) to allocate |
Definition at line 108 of file par.c.
Referenced by parAllocateWithTAC(), parExamplePerfectBolus(), parExampleTTACs(), parFromIFT(), parReadCSV(), parReadFIT(), and parReadRES().
| int parAllocateMore | ( | PAR * | par, |
| int | parNr, | ||
| int | tacNr ) |
Allocate more memory for PAR data. Previous contents are preserved.
| par | Pointer to initiated and previously allocated PAR struct data; any old contents are preserved, including tacNr and parNr. |
| parNr | Nr of additional parameters to allocate; if struct contains unused space for requested parameters already, then nothing is done. |
| tacNr | Nr of additional parameter sets (TACs) to allocate; if struct contains unused space for requested parameters already, then nothing is done. |
Definition at line 183 of file par.c.
Referenced by parCombineTACs().
| int parCLWithPar | ( | PAR * | par, |
| int | pi ) |
Check if specified parameter has confidence limits in at least one of the regions.
| par | Pointer to parameter data. |
| pi | Index of parameter [0..parNr-1] to check. |
Definition at line 325 of file par.c.
Referenced by parWriteCSV(), and parWriteXML().
| int parDeletePar | ( | PAR * | par, |
| int | pi ) |
Deletes the specified parameter (column) from data.
| par | Pointer to parameter data. |
| pi | Index of parameter [0..parNr-1] to remove. |
Definition at line 478 of file par.c.
Referenced by parReadCSV(), and parReadRES().
| int parDeleteTAC | ( | PAR * | par, |
| int | ti ) |
Deletes the specified TAC (row) from data.
| par | Pointer to parameter data. |
| ti | Index of TAC [0..tacNr-1] to remove. |
Definition at line 519 of file par.c.
| void parEnsureNames | ( | PAR * | d | ) |
Ensure that PAR struct contains a name for each TAC and parameters. If not available, then index+1 is written as name.
| d | Pointer to parameter data. |
Definition at line 449 of file par.c.
| void parFree | ( | PAR * | par | ) |
Free memory allocated for PAR. All data is cleared.
| par | Pointer to PAR struct |
Definition at line 75 of file par.c.
Referenced by parAllocate(), parFromIFT(), parRead(), parReadCSV(), parReadFIT(), and parReadRES().
| void parInit | ( | PAR * | par | ) |
| int parIsDataNr | ( | PAR * | par | ) |
Check if any of parameter sets has dataNr specified.
| par | Pointer to parameter data |
Definition at line 362 of file par.c.
Referenced by parToIFT(), parWriteCSV(), and parWriteXML().
| int parIsFitNr | ( | PAR * | par | ) |
Check if any of parameter sets has fitNr specified.
| par | Pointer to parameter data. |
Definition at line 343 of file par.c.
Referenced by parToIFT(), parWriteCSV(), and parWriteXML().
| int parIsFitRange | ( | PAR * | par | ) |
Check if any of parameter sets has fit range specified.
| par | Pointer to parameter data. |
Definition at line 267 of file par.c.
Referenced by parToIFT(), parWriteCSV(), and parWriteXML().
| int parIsModel | ( | PAR * | par | ) |
Check if any of parameter sets has model id specified.
| par | Pointer to parameter data. |
Definition at line 288 of file par.c.
Referenced by parToIFT(), parWriteCSV(), and parWriteXML().
| char * parIsOptcrit | ( | PAR * | par | ) |
Check if PAR data contains optimality criterion.
| par | Pointer to parameter data. |
Definition at line 381 of file par.c.
| char * parIsStudyNr | ( | PAR * | par | ) |
Check if PAR data contains study number.
| par | Pointer to parameter data. |
Definition at line 399 of file par.c.
| int parIsWSS | ( | PAR * | par | ) |
Check if any of parameter sets has WSS.
| par | Pointer to parameter data. |
Definition at line 252 of file par.c.
Referenced by parWriteCSV(), parWriteRES(), and parWriteXML().
| void parnInit | ( | PARN * | parn | ) |
Initiate the PARN struct before any use.
| parn | Pointer to PARN |
Definition at line 59 of file par.c.
Referenced by parAllocate(), and parAllocateMore().
| int parrAllocate | ( | PARR * | parr, |
| int | parNr ) |
Allocate memory for PARR data. Any previous contents are deleted.
| parr | Pointer to initiated PARR struct data; any old contents are deleted. |
| parNr | Nr of parameters to allocate. |
Definition at line 150 of file par.c.
Referenced by parAllocate(), and parAllocateMore().
| void parrFree | ( | PARR * | parr | ) |
Free memory allocated for PARR. All data is cleared.
| parr | Pointer to PARR struct |
Definition at line 87 of file par.c.
Referenced by parDeleteTAC(), parFree(), and parrAllocate().
| void parrInit | ( | PARR * | parr | ) |
Initiate the PARR struct before any use.
| parr | Pointer to PARR |
Definition at line 41 of file par.c.
Referenced by parAllocate(), parAllocateMore(), parDeleteTAC(), and parrFree().
| int parSDWithPar | ( | PAR * | par, |
| int | pi ) |
Check if specified parameter has SD in at least one of the regions.
| par | Pointer to parameter data. |
| pi | Index of parameter [0..parNr-1] to check. |
Definition at line 307 of file par.c.
Referenced by parWriteCSV(), and parWriteXML().
| int parSetStudyNr | ( | PAR * | par, |
| const char * | s ) |
Set study number in PAR data, overwriting any previous study number.
| par | Pointer to parameter data. |
| s | Pointer to string containing the study number; enter NULL or "" if you only want to delete studynr in header. |
Definition at line 417 of file par.c.