|
TPCCLIB
|
Comparison of TAC struct data. More...
#include "tpcclibConfig.h"#include "tpcift.h"#include <stdio.h>#include <stdlib.h>#include <math.h>#include <time.h>#include <ctype.h>#include <string.h>#include <strings.h>#include "tpctac.h"Go to the source code of this file.
Functions | |
| int | tacCompareUnit (TAC *d1, TAC *d2, TPCSTATUS *status) |
| int | tacCompareNames (TAC *d1, TAC *d2, const int i, TPCSTATUS *status) |
| int | tacCompareConc (TAC *d1, TAC *d2, const int i, const double test_abs, const double test_rel, TPCSTATUS *status) |
| int | tacCompareTimes (TAC *d1, TAC *d2, const double test_abs, const double test_rel, TPCSTATUS *status) |
| int | tacCompareWeights (TAC *d1, TAC *d2, const double test_abs, const double test_rel, TPCSTATUS *status) |
| int tacCompareConc | ( | TAC * | d1, |
| TAC * | d2, | ||
| const int | i, | ||
| const double | test_abs, | ||
| const double | test_rel, | ||
| TPCSTATUS * | status ) |
Check whether TAC concentrations (y values) are the same in two TAC data. Note that units are ignored here.
If either absolute or relative difference is below the limit, the test is reported as passed.
| d1 | Pointer to TAC structure. |
| d2 | Pointer to TAC structure. |
| i | TAC index [0..tacNr-1] to compare; enter <0 to verify all TACs. |
| test_abs | Limit for accepted absolute difference; obligatory. |
| test_rel | Optional limit for accepted relative difference |2*(x1-x2)/(x1+x2)| ; set to negative value to not test this; in case of zero mean, this test is assumed to fail, but test for absolute difference may still pass. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 122 of file taccomp.c.
Check whether TAC names are the same in two TAC data.
Comparison is very strict and even case-sensitive, thus TAC names may need to be preprocessed if this is used for other purpose than SW testing.
| d1 | Pointer to TAC structure. |
| d2 | Pointer to TAC structure. |
| i | TAC index [0..tacNr-1] to compare; enter <0 to verify all TACs. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 67 of file taccomp.c.
| int tacCompareTimes | ( | TAC * | d1, |
| TAC * | d2, | ||
| const double | test_abs, | ||
| const double | test_rel, | ||
| TPCSTATUS * | status ) |
Check whether TAC sample times (x values) are the same in two TAC data. Note that units are ignored here.
If either absolute or relative difference is below the limit, the test is reported as passed.
| d1 | Pointer to TAC structure. |
| d2 | Pointer to TAC structure. |
| test_abs | Limit for accepted absolute difference. |
| test_rel | Optional limit for accepted relative difference |2*(x1-x2)/(x1+x2)| ; set to negative value to not test this; in case of zero mean, this test is assumed to fail, but test for absolute difference may still pass. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 201 of file taccomp.c.
Check whether time and concentration units are the same in two TAC data.
| d1 | Pointer to TAC structure. |
| d2 | Pointer to TAC structure. |
| status | Pointer to status data; enter NULL if not needed |
Definition at line 27 of file taccomp.c.
| int tacCompareWeights | ( | TAC * | d1, |
| TAC * | d2, | ||
| const double | test_abs, | ||
| const double | test_rel, | ||
| TPCSTATUS * | status ) |
Check whether TAC weights are the same in two TAC data.
If either absolute or relative difference is below the limit, the test is reported as passed.
| d1 | Pointer to TAC structure. |
| d2 | Pointer to TAC structure. |
| test_abs | Limit for accepted absolute difference. |
| test_rel | Optional limit for accepted relative difference |2*(w1-w2)/(w1+w2)| ; set to negative value to not test this; in case of zero mean, this test is assumed to fail, but test for absolute difference may still pass. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 289 of file taccomp.c.