|
TPCCLIB
|
Sort or otherwise change the order of data in TAC struct. More...
#include "tpcclibConfig.h"#include <stdio.h>#include <stdlib.h>#include <math.h>#include <time.h>#include <string.h>#include "tpctac.h"Go to the source code of this file.
Functions | |
| int | tacVerifyTimeOrder (TAC *d, TPCSTATUS *status) |
| int | tacSortByTime (TAC *d, TPCSTATUS *status) |
| int | tacSortByConc (TAC *d, const int i, TPCSTATUS *status) |
| int | tacSortByName (TAC *d, TPCSTATUS *status) |
| int | tacSortByAUC (TAC *d, TPCSTATUS *status) |
| int | tacMoveTACC (TAC *d, int from, int to) |
| int | tacSwapTACCs (TAC *d, int i1, int i2) |
| int | tacDeleteTACC (TAC *d, int i) |
| int | tacMultipleSamples (TAC *d1, const int fixMode, TAC *d2, const int verbose) |
| Check TAC data for multiple samples with the same sample time. Optionally replace the multiple samples with their mean. | |
Sort or otherwise change the order of data in TAC struct.
Definition in file tacorder.c.
| int tacDeleteTACC | ( | TAC * | d, |
| int | i ) |
Delete specified TACC inside TAC structure, moving the positions of other TACCs accordingly.
| d | Pointer to TAC data. Main header is not changed, but tacNr is decreased. |
| i | TACC index [0..tacNr-1]. |
Definition at line 310 of file tacorder.c.
Referenced by tacReadReference(), and tacWMove().
| int tacMoveTACC | ( | TAC * | d, |
| int | from, | ||
| int | to ) |
Move TACC from one position to another inside TAC structure, moving the positions of other TACCs accordingly.
| d | Pointer to TAC data. Main header and tacNr are not changed. |
| from | TACC index [0.._tacNr-1] |
| to | TACC index [0.._tacNr-1] |
Definition at line 250 of file tacorder.c.
Referenced by tacDeleteTACC().
Check TAC data for multiple samples with the same sample time. Optionally replace the multiple samples with their mean.
Data does no need to be sorted before calling this. Output is not necessarily sorted either.
| d1 | Pointer to the input TAC structure; optionally modified. |
| fixMode | Just inspect for multiple samples (0), or replace those with mean (1). |
| d2 | Pointer to the output TAC structure; enter NULL if just inspecting. To replace the contents of input TAC, enter the same pointer here. |
| verbose | Verbose level; if zero, then nothing is printed to stderr or stdout. |
Definition at line 336 of file tacorder.c.
Sort TACs in decreasing order by their area-under-curve (AUC).
| d | Pointer to TAC structure. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 205 of file tacorder.c.
Sort samples (frames) in TAC structure by decreasing sample value.
| d | Pointer to TAC structure. |
| i | Index of y column which the sorting is based on. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 122 of file tacorder.c.
Sort TACs in alphabetical order by their TAC name.
| d | Pointer to TAC structure. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 178 of file tacorder.c.
Sort samples (frames) in TAC structure by increasing sample time.
| d | Pointer to TAC structure. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 74 of file tacorder.c.
Referenced by tacInput2sim(), tacReadModelingData(), tacReadModelingInput(), and tacSetXContiguous().
| int tacSwapTACCs | ( | TAC * | d, |
| int | i1, | ||
| int | i2 ) |
Change places between two TACCs inside TAC structure.
| d | Pointer to TAC data. Main header and tacNr are not changed. |
| i1 | TACC index 1 [0.._tacNr-1] |
| i2 | TACC index 2 [0.._tacNr-1] |
Definition at line 282 of file tacorder.c.
Referenced by tacSortByAUC().
Verify that x values (sample or frame times) in TAC structure are ordered by increasing x. Overlapping samples are ok here.
| d | Pointer to TAC structure; not modified. |
| status | Pointer to status data; enter NULL if not needed |
Definition at line 25 of file tacorder.c.
Referenced by tacCorrectFrameOverlap(), and tacIsXContiguous().