|
TPCCLIB
|
Comparison of PAR 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 "tpcpar.h"Go to the source code of this file.
Functions | |
| int | parCompareParameterNames (PAR *d1, PAR *d2, const int i, const int casens, TPCSTATUS *status) |
| int | parCompareParameterUnits (PAR *d1, PAR *d2, const int i, TPCSTATUS *status) |
| int | parCompareTacNames (PAR *d1, PAR *d2, const int i, const int casens, TPCSTATUS *status) |
| int | parCompareParameters (PAR *d1, PAR *d2, const int pi, const int ti, int checkpar, int checksd, int checkcl, const double test_abs, const double test_rel, TPCSTATUS *status) |
| int | parCompareWSS (PAR *d1, PAR *d2, const int ti, const double test_abs, const double test_rel, TPCSTATUS *status) |
| int parCompareParameterNames | ( | PAR * | d1, |
| PAR * | d2, | ||
| const int | i, | ||
| const int | casens, | ||
| TPCSTATUS * | status ) |
Check whether parameter names are the same in two PAR data.
Comparison is very strict, thus the names may need to be preprocessed if this is used for other purpose than SW testing.
| d1 | Pointer to PAR struct. |
| d2 | Pointer to PAR struct. |
| i | Parameter index [0..parNr-1] to compare; enter <0 to verify all. |
| casens | Case-sensitivity: 0=case does not have to match; <>0=case must match. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 28 of file parcomp.c.
| int parCompareParameters | ( | PAR * | d1, |
| PAR * | d2, | ||
| const int | pi, | ||
| const int | ti, | ||
| int | checkpar, | ||
| int | checksd, | ||
| int | checkcl, | ||
| const double | test_abs, | ||
| const double | test_rel, | ||
| TPCSTATUS * | status ) |
Check whether parameter values are the same in two PAR 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 PAR structure. |
| d2 | Pointer to PAR structure. |
| pi | PAR index [0..parNr-1] to compare; enter <0 to verify all parameters. |
| ti | TAC index [0..tacNr-1] to compare; enter <0 to verify all TACs. |
| checkpar | Check parameter values (1) or do not check (0). |
| checksd | Check parameter SD values (1) or do not check (0). |
| checkcl | Check parameter CL values (1) or do not check (0). |
| 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 237 of file parcomp.c.
Check whether parameter units are the same in two PAR data.
| d1 | Pointer to PAR structure. |
| d2 | Pointer to PAR structure. |
| i | Parameter index [0..parNr-1] to compare; enter <0 to verify all. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 103 of file parcomp.c.
Check whether TAC names are the same in two PAR data.
Comparison is very strict, thus the names may need to be preprocessed if this is used for other purpose than SW testing.
| d1 | Pointer to PAR structure. |
| d2 | Pointer to PAR structure. |
| i | Parameter index [0..tacNr-1] to compare; enter <0 to verify all. |
| casens | Case-sensitivity: 0=case does not have to match; <>0=case must match. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 157 of file parcomp.c.
| int parCompareWSS | ( | PAR * | d1, |
| PAR * | d2, | ||
| const int | ti, | ||
| const double | test_abs, | ||
| const double | test_rel, | ||
| TPCSTATUS * | status ) |
Check whether fit WSS values are the same in two PAR 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 PAR structure. |
| d2 | Pointer to PAR structure. |
| ti | 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 378 of file parcomp.c.