|
TPCCLIB
|
Working with NaN's in TAC struct. More...
#include "tpcclibConfig.h"#include "tpcift.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 | tacXNaNs (TAC *tac) |
| int | tacYNaNs (TAC *tac, const int i) |
| int | tacNaNs (TAC *tac) |
| int | tacNotNaNs (TAC *tac, const int i) |
| int | tacFixNaNs (TAC *tac) |
| int | tacNthSample (TAC *tac, const int sn, const int i) |
| int tacFixNaNs | ( | TAC * | tac | ) |
Fix missing y values in TAC structure by interpolation. X values cannot be fixed. Extrapolation of the last missing values is not possible, but beginning can be estimated assuming first point (0,0).
| tac | Pointer to TAC structure. |
Definition at line 121 of file tacnan.c.
| int tacNaNs | ( | TAC * | tac | ) |
Check TAC structure for missing sample times and values.
| tac | Pointer to TAC structure. |
Definition at line 71 of file tacnan.c.
Referenced by tacFramesToSteps(), tacInterpolate(), tacInterpolateInto(), tacReadModelingData(), and tacReadModelingInput().
| int tacNotNaNs | ( | TAC * | tac, |
| const int | i ) |
Check TAC structure for missing sample times and values.
Definition at line 84 of file tacnan.c.
| int tacNthSample | ( | TAC * | tac, |
| const int | sn, | ||
| const int | i ) |
Search the Nth sample (1..n) in TAC structure which does not contain missing x or y values. Use tacNotNaNs to get the number of existing samples in TAC.
| tac | Pointer to TAC structure. |
| sn | Number (1..n) of sample to search for; 1 to search for the first one, tacNotNaNs(&tac, -1) to search for the last one. |
| i | Index of TAC to test; <0 to test all TACs |
Definition at line 173 of file tacnan.c.
| int tacXNaNs | ( | TAC * | tac | ) |
Check TAC structure for missing sample times (x, or x1 and x2).
| tac | Pointer to TAC structure. |
Definition at line 23 of file tacnan.c.
Referenced by tacDelay(), tacFixNaNs(), tacInterpolate(), tacInterpolateInto(), tacIsXContiguous(), tacNaNs(), tacSetXContiguous(), tacSortByTime(), and tacVerifyTimeOrder().
| int tacYNaNs | ( | TAC * | tac, |
| const int | i ) |
Check TAC structure for missing sample values (y).
Definition at line 47 of file tacnan.c.
Referenced by tacDelay(), tacFixNaNs(), and tacNaNs().