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

gnn_tanh.c File Reference

#include "gnn_tanh.h"
#include <math.h>

Include dependency graph for gnn_tanh.c:

Include dependency graph

Go to the source code of this file.

Data Structures

struct  _gnn_tanh

Defines

#define GNN_TANH_A(node)   (((gnn_tanh *)(node))->a)
#define GNN_TANH_B(node)   (((gnn_tanh *)(node))->b)

Typedefs

typedef _gnn_tanh gnn_tanh

Functions

int gnn_tanh_f (gnn_node *node, const gsl_vector *x, const gsl_vector *w, gsl_vector *y)
 Computes the output.

int gnn_tanh_dx (gnn_node *node, const gsl_vector *x, const gsl_vector *w, const gsl_vector *dy, gsl_vector *dx)
 Computes .

gnn_nodegnn_tanh_new (int input_size, double a, double b)
 Creates a Hyperbolic Tangent Activation Function node.

gnn_nodegnn_tanh_standard_new (int input_size)
 Creates a standard Hyperbolic Tangent function node.

gnn_nodegnn_tanh_enhanced_new (int input_size)
 Creates a Hyperbolic Tangent function node.

double gnn_tanh_get_a (gnn_node *node)
 Returns the amplitude constant .

void gnn_tanh_set_a (gnn_node *node, double a)
 Sets the amplitude constant .

double gnn_tanh_get_b (gnn_node *node)
 Gets the streching factor .

void gnn_tanh_set_b (gnn_node *node, double b)
 Sets the streching factor .


Define Documentation

#define GNN_TANH_A node       (((gnn_tanh *)(node))->a)
 

Definition at line 55 of file gnn_tanh.c.

#define GNN_TANH_B node       (((gnn_tanh *)(node))->b)
 

Definition at line 56 of file gnn_tanh.c.


Typedef Documentation

typedef struct _gnn_tanh gnn_tanh
 


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