|
TPCCLIB
|
Working with y values (concentrations) 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 | tacYRange (TAC *d, int i, double *ymin, double *ymax, int *smin, int *smax, int *imin, int *imax) |
| Get the range of y values (concentrations) in TAC struct. | |
| int | tacYRangeInXRange (TAC *d, int i, const double xmin, const double xmax, double *ymin, double *ymax, int *smin, int *smax, int *imin, int *imax) |
| Get the range of y values (concentrations) in TAC struct, including only samples with x (times) inside given range. | |
| int tacYRange | ( | TAC * | d, |
| int | i, | ||
| double * | ymin, | ||
| double * | ymax, | ||
| int * | smin, | ||
| int * | smax, | ||
| int * | imin, | ||
| int * | imax ) |
Get the range of y values (concentrations) in TAC struct.
Data is not modified. Data does not need to be sorted. Data can contain NaNs, but y values omitted if corresponding x is NaN.
| d | Pointer to TAC structure. |
| i | Index of TAC, [0, ..., tacNr-1] ; enter <0 to search for max and/or min from all TACs. |
| ymin | Pointer to variable for min y value (NULL if not needed). |
| ymax | Pointer to variable for max y value (NULL if not needed). |
| smin | Pointer to variable where sample index of min y value will be stored (NULL if not needed). |
| smax | Pointer to variable where sample index of max y value will be stored (NULL if not needed). |
| imin | Pointer to variable where tac index of min y value will be stored (NULL if not needed). |
| imax | Pointer to variable where tac index of max y value will be stored (NULL if not needed). |
Definition at line 26 of file tacy.c.
Referenced by mtgaPlotSVG().
| int tacYRangeInXRange | ( | TAC * | d, |
| int | i, | ||
| const double | xmin, | ||
| const double | xmax, | ||
| double * | ymin, | ||
| double * | ymax, | ||
| int * | smin, | ||
| int * | smax, | ||
| int * | imin, | ||
| int * | imax ) |
Get the range of y values (concentrations) in TAC struct, including only samples with x (times) inside given range.
Data is not modified. Data does not need to be sorted. Data can contain NaNs, but y values omitted if corresponding x is NaN.
| d | Pointer to TAC structure. |
| i | Index of TAC, [0, ..., tacNr-1] ; enter <0 to search for max and/or min from all TACs. |
| xmin | Min x value. |
| xmax | Max x value. |
| ymin | Pointer to variable for min y value (NULL if not needed). |
| ymax | Pointer to variable for max y value (NULL if not needed). |
| smin | Pointer to variable where sample index of min y value will be stored (NULL if not needed). |
| smax | Pointer to variable where sample index of max y value will be stored (NULL if not needed). |
| imin | Pointer to variable where tac index of min y value will be stored (NULL if not needed). |
| imax | Pointer to variable where tac index of max y value will be stored (NULL if not needed). |
Definition at line 99 of file tacy.c.
Referenced by tacPlotFitSVG(), tacPlotHistogramSVG(), and tacPlotLineSVG().