These routines are used to manipulate the DS_Static structure
int init_DS_Static(struct DS_Static* data);
This routine initializes the pointers for the data structure. It must be called for a particular declared structure before any other routine uses it.
int alloc_DS_Static(struct DS_Static* data, int
num_inpts,int num_outpts,
int num_samps);
This routine allocates and zeros the arrays for a new data structure.
int dealloc_DS_Static(struct DS_Static* data);
This routine deallocates the space and essentially destroys an existing data structure.
int read_DS_Static(char* filename, struct DS_Static*
data);
This routine reads the data from a file in the STATIC file format into an existing data structure. A data structure pointer must be initialized but should not be allocated when passed to this routine, as it performs its own allocation.
int write_DS_Static(char* filename, struct
DS_Static* data);
This routine writes a STATIC data structure out to the given filename in the STATIC file format.
int copy_DS_Static(struct DS_Static* oldptr, struct
DS_Static* newptr);
This routine copies a data structure. The copy data structure pointer must be initialized but should not be allocated when passed to this routine, as it performs its own allocation.
int shuffle_DS_Static(struct DS_Static* data,double**
old_inpt_ptrs, double** old_outpt_ptrs);
This routine randomly rearranges the vector pairs in the input and output arrays. This is used alter the presentation order of the vectors.
int append_DS_Static(struct DS_Static* newdata,
struct DS_Static* store);
This routine appends the data from one structure to another. The two structures must have the same input and output dimensionality.