#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <math.h>#include <string.h>#include <time.h>#include "include/mathfunc.h"Functions | |
| void | emptyFIT (FIT *fit) |
| void | initFIT (FIT *fit) |
| int | writeFIT (FIT *fit, char *filename) |
| int | setmemFIT (FIT *fit, int voiNr) |
| void | printFIT (FIT *fit) |
| int | readFIT (char *filename, FIT *fit) |
| int | functionformatFIT (int type, char *str) |
| int | functionnameFIT (int type, char *str) |
| int | evalFIT (FitVOI *r, double x, double *y) |
| int | evaltacFIT (FitVOI *r, double *x, double *y, int dataNr) |
| int | ievalFIT (FitVOI *r, double x, double *yi) |
| int | ievaltacFIT (FitVOI *r, double *x, double *yi, int dataNr) |
| int | devalFIT (FitVOI *r, double x, double *yd) |
| int | devaltacFIT (FitVOI *r, double *x, double *yd, int dataNr) |
|
||||||||||||||||
|
Evaluates yd=Df(x).
|
|
||||||||||||||||||||
|
Evaluates an array yd[i]=Df(x[i]).
|
|
|
Free memory allocated for FIT. All contents are cleared. |
|
||||||||||||||||
|
Evaluate y=f(x).
|
|
||||||||||||||||||||
|
Evaluates an array y[i]=f(x[i]).
|
|
||||||||||||
|
Copies the description of a function type to the specified string which must have space for >=128 characters.
|
|
||||||||||||
|
Copies the name of the function to the specified string which must have space for >=128 characters.
|
|
||||||||||||||||
|
Evaluates yi=Integral of f(x) between 0 and x.
|
|
||||||||||||||||||||
|
Evaluate an array yi[i]=Integral of f(x[i]) between 0 and x.
|
|
|
Initiate FIT structure. Call this once before first use. |
|
|
Print to stdout the contents of FIT data structure. Mainly for testing purposes. |
|
||||||||||||
|
Read FIT file contents to the specified data structure, emptying its old contents.
|
|
||||||||||||
|
Allocate memory for FIT data. Any previous contents are destroyed. |
|
||||||||||||
|
Write function parameters in FIT into specified file. If necessary, a backup file (*%) is created. In case of an error, >0 is returned, and a description is written in fiterrmsg. |
1.4.1