gnn_input : Reading and handling of sets of vectors. datatypes are special objects that read and provide access to sets of vectors. The raw gnn_input : Reading and handling of sets of vectors. structure defines a common interface that should be implemented by extensions of this type. Typical implementations can read vectors from files, memory, ports, etc.
|
|
This is the datatype that contains the basic elements for the implementation of a inputvector reader. Every new type of inputs should extend this structure. Definition at line 52 of file gnn_input.h. |
|
|
This function type defines the form of the "destroy" functions for input sets. It should deallocate the extension's specific data. Definition at line 84 of file gnn_input.h. |
|
|
This function type defines the form of the "get" functions for input sets. A "get" function should return the k-th pattern. The returned vector is not intended to be modified. The pointed vector should persist until a call on "reset", "get" or "destroy". Definition at line 75 of file gnn_input.h. |
|
|
This function type defines the form of the "reset" functions for input sets. A "reset" function should prepare the internal properties for beginning a new sequence of input pattern drawings. "reset" is usually called after the end of an epoch has been reached. Definition at line 64 of file gnn_input.h. |
|
|
This function is the default "destroy" function for an input set. It assumes that there isn't any additional data for the specific dataset type, so it actually just returns.
Definition at line 97 of file gnn_input.c. |
|
|
This function is the default "reset" function for a input set. Actuallly, it doesn't anything.
Definition at line 77 of file gnn_input.c. |
|
|
This function destroys the input reader.
Definition at line 207 of file gnn_input.c. |
|
||||||||||||
|
This function returns a pointer to a buffer containing the k-th sample vector. The content of the pointed vector will be valid until a next function call on this input set.
Definition at line 246 of file gnn_input.c. |
|
|
This function returns the set's size.
Definition at line 264 of file gnn_input.c. |
|
||||||||||||||||||||||||||||
|
This function initializes a given vector reader, setting its properties and installing its functions. If the "reset", or "destroy" functions aren't provided, then the default functions gnn_input : Reading and handling of sets of vectors. and gnn_input : Reading and handling of sets of vectors. are installed respectively. The "get" function is mandatory, and should always be provided. As an example, suppose that you have made your own extension to the gnn_input : Reading and handling of sets of vectors. datatype, one that reads from a serial port, which you called "serial_reader". Also, suppose you have already coded the appropiate "reset", "get" and "destroy" functions for your special reader. Then, serial_reader *myinput; // a pointer to the input reader to be created gnn_input *set; // a pointer to the same structure, but viewed as a // gnn_input // allocate memory for the input reader myinput = (serial_reader *) malloc (sizeof (serial_reader)); // view as a gnn_input set = (gnn_input *) myinput; // initialize the input (you know there are only 100 samples) gnn_input_init (set, 100, 5, serial_reader_reset, serial_reader_get, serial_reader_destroy);
Definition at line 153 of file gnn_input.c. |
|
|
This function resets the input handler.
Definition at line 225 of file gnn_input.c. |
|
|
This function returns the size of the samples.
Definition at line 281 of file gnn_input.c. |
1.2.18