Doxygen Source Code Documentation
model_null.c File Reference
#include <math.h>#include "NLfit_model.h"Go to the source code of this file.
Functions | |
| void | signal_model (float *gs, int ts_length, float **x_array, float *ts_array) |
| DEFINE_MODEL_PROTOTYPE MODEL_interface * | initialize_model () |
Function Documentation
|
|
Definition at line 40 of file model_null.c. References MODEL_interface::call_func, MODEL_interface::label, MODEL_SIGNAL_TYPE, MODEL_interface::model_type, MODEL_interface::params, signal_model(), and XtMalloc.
00041 {
00042 MODEL_interface * mi = NULL;
00043
00044
00045 /*----- allocate memory space for model interface -----*/
00046 mi = (MODEL_interface *) XtMalloc (sizeof(MODEL_interface));
00047
00048
00049 /*----- define interface for the null signal model -----*/
00050
00051 /*----- name of this model -----*/
00052 strcpy (mi->label, "Null");
00053
00054 /*----- this is a signal model -----*/
00055 mi->model_type = MODEL_SIGNAL_TYPE;
00056
00057 /*----- number of parameters in the model -----*/
00058 mi->params = 0;
00059
00060 /*----- minimum and maximum parameter constraints -----*/
00061 /*----- there are none -----*/
00062
00063 /*----- function which implements the model -----*/
00064 mi->call_func = &signal_model;
00065
00066
00067 /*----- return pointer to the model interface -----*/
00068 return (mi);
00069 }
|
|
||||||||||||||||||||
|
Definition at line 79 of file model_null.c. Referenced by initialize_model().
00086 {
00087 int it; /* time index */
00088
00089
00090 for (it = 0; it < ts_length; it++)
00091 ts_array[it] = 0.0;
00092
00093 }
|