quickfun.c File Reference

#include <assert.h>
#include <math.h>
#include "quickfun.h"

Include dependency graph for quickfun.c:

Go to the source code of this file.

Defines

#define round(x)   ((UINT)(x+0.5))
#define TANH_RANGE0   1.84
#define TANH_RANGE1   4.5
#define TANH_STEP0   0.001
#define TANH_STEP1   0.005
#define TANH_FACTOR0   (1/TANH_STEP0)
#define TANH_FACTOR1   (1/TANH_STEP1)
#define TANH_SIZE0   (round(TANH_FACTOR0*TANH_RANGE0)+1)
#define TANH_SIZE1   (round(TANH_FACTOR1*(TANH_RANGE1-TANH_RANGE0))+1)

Functions

void quick_tanh_setup (void)
REAL quick_tanh (REAL x)


Detailed Description

Id
quickfun.c 1789 2004-04-23 05:15:44Z ling

Definition in file quickfun.c.


Define Documentation

#define round  )     ((UINT)(x+0.5))
 

Definition at line 9 of file quickfun.c.

#define TANH_FACTOR0   (1/TANH_STEP0)
 

Definition at line 16 of file quickfun.c.

#define TANH_FACTOR1   (1/TANH_STEP1)
 

Definition at line 17 of file quickfun.c.

#define TANH_RANGE0   1.84
 

Definition at line 11 of file quickfun.c.

Referenced by quick_tanh_setup().

#define TANH_RANGE1   4.5
 

Definition at line 12 of file quickfun.c.

#define TANH_SIZE0   (round(TANH_FACTOR0*TANH_RANGE0)+1)
 

Definition at line 18 of file quickfun.c.

Referenced by quick_tanh_setup().

#define TANH_SIZE1   (round(TANH_FACTOR1*(TANH_RANGE1-TANH_RANGE0))+1)
 

Definition at line 19 of file quickfun.c.

Referenced by quick_tanh_setup().

#define TANH_STEP0   0.001
 

Definition at line 13 of file quickfun.c.

Referenced by quick_tanh_setup().

#define TANH_STEP1   0.005
 

Definition at line 14 of file quickfun.c.

Referenced by quick_tanh_setup().


Function Documentation

REAL quick_tanh REAL  x  ) 
 

Definition at line 44 of file quickfun.c.

Referenced by NNLayer::sigmoid(), and NNLayer::sigmoid_deriv().

void quick_tanh_setup void   ) 
 

Definition at line 25 of file quickfun.c.

References TANH_RANGE0, TANH_SIZE0, TANH_SIZE1, TANH_STEP0, and TANH_STEP1.

Referenced by NNLayer::NNLayer().


Generated on Mon Jan 9 23:44:06 2006 for LEMGA by  doxygen 1.4.6