libtpcmodext
 All Files Functions Variables Defines
Functions
plotfit.c File Reference
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include "libtpcmisc.h"
#include "include/libtpcmodext.h"
Include dependency graph for plotfit.c:

Go to the source code of this file.

Functions

int plot_fitrange_svg (DFT *dft1, DFT *dft2, char *main_title, double x1, double x2, double y1, double y2, char *fname)
int plot_fit_svg (DFT *dft1, DFT *dft2, char *main_title, char *fname)

Function Documentation

int plot_fit_svg ( DFT *  dft1,
DFT *  dft2,
char *  main_title,
char *  fname 
)

Writes plots of original and fitted TACs in SVG 1.1 format. Data must not contain NaNs.

Returns:
Returns 0 if successful, otherwise nonzero.
Parameters:
dft1Measured data points
dft2Fitted data points. Times can be different but unit must be the same.
main_titleString for plot main title, or NULL
fnameSVG filename; existing file is backed up

Definition at line 214 of file plotfit.c.

References MODEXT_TEST.

int plot_fitrange_svg ( DFT *  dft1,
DFT *  dft2,
char *  main_title,
double  x1,
double  x2,
double  y1,
double  y2,
char *  fname 
)

Writes specified range of plots of original and fitted TACs in SVG 1.1 format.

Returns:
Returns 0 if successful, otherwise nonzero.
Parameters:
dft1Measured data points
dft2Fitted data points. Times can be different but unit must be the same.
main_titleString for plot main title, or NULL
x1Start time; NaN if determined from data
x2End time; NaN if determined from data
y1Minimum y value; NaN if determined from data
y2Maximum y value; NaN if determined from data
fnameSVG filename; existing file is backed up

Definition at line 57 of file plotfit.c.

References MODEXT_TEST.