5#include "tpcclibConfig.h"
38 int verbose=0;
if(status!=NULL) verbose=status->
verbose;
40 printf(
"%s(par, %g, %g, tac, status)\n", __func__, endx, dx);
46 if(par==NULL || tac==NULL || !(endx>0.0) || !(dx>0.0))
return(status->
error);
49 return(status->
error);
59 statusSet(status, __func__, __FILE__, __LINE__, ret);
60 return(status->
error);
67 for(
int i=0; i<xNr; i++) tac->
x[i]=(
double)i*dx;
70 for(
int ci=0; ci<par->
tacNr; ci++) {
int mfEvalY(const char *fid, const int parNr, double *p, const int sampleNr, double *x, double *y, const int verbose)
int iftFindKey(IFT *ift, const char *key, int start_index)
int mfCreateTAC(PAR *par, double endx, double dx, TAC *tac, TPCSTATUS *status)
Make TAC(s) based on mathematical functions in PAR format.
char * modelCode(const unsigned int i)
unsigned int modelParNr(const unsigned int code)
void statusSet(TPCSTATUS *s, const char *func, const char *srcfile, int srcline, tpcerror error)
IFT h
Optional (but often useful) header information.
char name[MAX_TACNAME_LEN+1]
char name[MAX_TACNAME_LEN+1]
int verbose
Verbose level, used by statusPrint() etc.
tpcerror error
Error code.
int tacAllocate(TAC *tac, int sampleNr, int tacNr)
Header file for library libtpcextensions.
@ TPCERROR_FAIL
General error.
@ TPCERROR_NO_DATA
File contains no data.
@ TPCERROR_INCOMPATIBLE_DATA
Incompatible data.
int unitIdentify(const char *s)
Header file for libtpcmodels.
Header file for library libtpctac.
Header file for libtpctacmod.