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

gnn_memory_output.h File Reference

#include "gnn_output.h"

Include dependency graph for gnn_memory_output.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Functions

gnn_outputgnn_memory_output_new_from_matrix (gsl_matrix *m)
 Builds an output set from a matrix.

gnn_outputgnn_memory_output_new (size_t size, size_t n)
 Builds an output set for required sizes.

const gsl_matrix * gnn_memory_output_get_matrix (gnn_output *set)
 Returns the set's internal matrix.

int gnn_memory_output_save (gnn_output *set, const char *filename)
 Saves the outputs to a file.


Function Documentation

const gsl_matrix* gnn_memory_output_get_matrix gnn_output   set
 

This function returns a pointer to the set's internal matrix. This matrix stores the output vectors row-wise.

Parameters:
set  A pointer to a gnn_output : Writing sets of vectors..
Returns:
Returns a pointer to the internal matrix.

Definition at line 250 of file gnn_memory_output.c.

gnn_output* gnn_memory_output_new size_t    size,
size_t    n
 

This function creates a new gnn_memory_output : Memory Output Samples. that should be able to store the given number of patterns, where the sample's size is also given.

Parameters:
size  The number of patterns to be stored by the output.
n  The size of an output sample vector.
Returns:
Returns a pointer to a new gnn_memory_output : Memory Output Samples. set.

Definition at line 163 of file gnn_memory_output.c.

gnn_output* gnn_memory_output_new_from_matrix gsl_matrix *    m
 

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

Parameters:
m  The output sample matrix.
Returns:
Returns a pointer to a new gnn_memory_output : Memory Output Samples. set.

Definition at line 203 of file gnn_memory_output.c.

int gnn_memory_output_save gnn_output   set,
const char *    filename
 

This function saves the outputs stored in the matrix to a file, in plain ASCII format.

Parameters:
set  A pointer to the output set.
filename  A string with the name of the output file.
Returns:
Returns 0 if succeeded.

Definition at line 272 of file gnn_memory_output.c.


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