Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

gnn_memory_input : Memory Input Samples.
[gnn_input : Reading and handling of sets of vectors.]


Detailed Description

The gnn_memory_input : Memory Input Samples. samples set stores its samples in memory. It has a matrix, where the samples are stored row-wise.

A gnn_memory_input : Memory Input Samples. can be build directly providing the necessary matrix using the gnn_memory_input_new_from_matrix. Alternatively, the matrix can be loaded using the gnn_memory_input_new_from_file.

Typedefs

typedef _gnn_constant_input gnn_constant_input
 The datatype for the constant samples set.

typedef _gnn_memory_input gnn_memory_input
 The datatype for memory inputs.


Functions

const gsl_vector * gnn_memory_input_get (gnn_input *set, size_t k)
 The "get" function for a memory input set.

void gnn_memory_input_destroy (gnn_input *set)
 Destroy function.

gnn_inputgnn_memory_input_new_from_matrix (gsl_matrix *m)
 Builds an input set from a matrix.

gnn_inputgnn_memory_input_new_from_file (const char *filename)
 Builds a input set from a file.


Typedef Documentation

typedef struct _gnn_constant_input gnn_constant_input
 

This is the datatype for constant input sample set. It extends the basic gnn_input : Reading and handling of sets of vectors. structure to include the additional pointer to the sample vector.

Definition at line 58 of file gnn_constant_input.c.

typedef struct _gnn_memory_input gnn_memory_input
 

This is the datatype for memory inputs. It extends the basic gnn_input : Reading and handling of sets of vectors. structure to include the additional pointer to the samples matrix, and a vector view.

Definition at line 63 of file gnn_memory_input.c.


Function Documentation

void gnn_memory_input_destroy gnn_input   set [static]
 

This is the gnn_memory_input : Memory Input Samples. destroy function.

Parameters:
set  A pointer to a gnn_memory_input : Memory Input Samples. dataset.

Definition at line 124 of file gnn_memory_input.c.

const gsl_vector * gnn_memory_input_get gnn_input   set,
size_t    k
[static]
 

This function is returns the k-th pattern in the set.

Parameters:
set  A pointer to a gnn_memory_input : Memory Input Samples..
k  The index of the pattern to be retrieved.
Returns:
A pointer to the sample vector.

Definition at line 95 of file gnn_memory_input.c.

gnn_input* gnn_memory_input_new_from_file const char *    filename
 

This functions creates a new gnn_memory_input : Memory Input Samples. from a file where the samples are stored. Their elements should be in ASCII format separated by blank spaces. Each row should start on a new line.

Please read gnn_memory_input : Memory Input Samples. for further details on the needed format.

Parameters:
filename  The filename of the input matrix.
Returns:
Returns a pointer to a new gnn_memory_input : Memory Input Samples. set.

Definition at line 212 of file gnn_memory_input.c.

gnn_input* gnn_memory_input_new_from_matrix gsl_matrix *    m
 

This function creates a new gnn_memory_input : Memory Input Samples. from a matrix, where the samples are stored row-wise. That is, each row should contain a different sample, and each column corresponds to a different sample's component.

Parameters:
m  The sample matrix.
Returns:
Returns a pointer to a new gnn_memory_input : Memory Input Samples. set.

Definition at line 157 of file gnn_memory_input.c.


Generated on Sun Jun 13 20:51:44 2004 for libgnn Gradient Retropropagation Machine Library by doxygen1.2.18