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

gnn_prototype.h File Reference

#include <gsl/gsl_matrix.h>
#include "gnn_node.h"

Include dependency graph for gnn_prototype.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.

Data Structures

struct  _gnn_prototype

Typedefs

typedef _gnn_prototype gnn_prototype
 The structure for a gnn_prototype : Prototypes. node.


Functions

gnn_nodegnn_prototype_new (size_t input_size, size_t output_size, double min, double max)
 Creates a Prototype node.

gnn_nodegnn_prototype_standard_new (size_t input_size, size_t output_size)
 Creates a standard Prototype node.

int gnn_prototype_vector_freeze (gnn_node *node, size_t j)
 Freeze a prototype.

int gnn_prototype_vector_unfreeze (gnn_node *node, size_t j)
 Unfreeze a prototype.

int gnn_prototype_vector_set (gnn_node *node, size_t j, const gsl_vector *v)
 Sets a prototype.

int gnn_prototype_vector_get (gnn_node *node, size_t j, gsl_vector *v)
 Gets a prototype.


Function Documentation

gnn_node* gnn_prototype_new size_t    input_size,
size_t    output_size,
double    min,
double    max
 

This function creates a node of the gnn_prototype : Prototypes. type. Each one of its vectors is drawn from a uniform distribution between [min; max).

Parameters:
input_size  The input size .
output_size  The output size , and the number of prototypes.
min  The minimum value of a component.
max  The maximum value of a component.
Returns:
A pointer to a new gnn_prototype : Prototypes. node.

Definition at line 317 of file gnn_prototype.c.

gnn_node* gnn_prototype_standard_new size_t    input_size,
size_t    output_size
 

This function creates a node of the gnn_prototype : Prototypes. type. Each one of its vectors is drawn from a uniform distribution between [-1; 1).

Parameters:
input_size  The input size .
output_size  The output size , and the number of prototypes.
Returns:
A pointer to a new gnn_prototype : Prototypes. node.

Definition at line 437 of file gnn_prototype.c.

int gnn_prototype_vector_freeze gnn_node   node,
size_t    j
 

This function freezes the j-th prototype.

Parameters:
node  A pointer to a gnn_prototype : Prototypes. node.
j  The index of the prototype to be frozen.
Returns:
Returns 0 if succeeded.

Definition at line 453 of file gnn_prototype.c.

int gnn_prototype_vector_get gnn_node   node,
size_t    j,
gsl_vector *    v
 

This function gets the values of the j-th prototype and stores them into the given vector.

Parameters:
node  A pointer to a gnn_prototype : Prototypes. node.
j  The index of the prototype to be frozen.
v  A vector of the correct size, where the prototype's values should be copied in.
Returns:
Returns 0 if succeeded.

Definition at line 589 of file gnn_prototype.c.

int gnn_prototype_vector_set gnn_node   node,
size_t    j,
const gsl_vector *    v
 

This function sets a new value for the j-th prototype.

Parameters:
node  A pointer to a gnn_prototype : Prototypes. node.
j  The index of the prototype to be frozen.
v  A new with the new values for the prototype.
Returns:
Returns 0 if succeeded.

Definition at line 538 of file gnn_prototype.c.

int gnn_prototype_vector_unfreeze gnn_node   node,
size_t    j
 

This function unfreezes the j-th prototype.

Parameters:
node  A pointer to a gnn_prototype : Prototypes. node.
j  The index of the prototype to be unfrozen.
Returns:
Returns 0 if succeeded.

Definition at line 495 of file gnn_prototype.c.


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