#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) | 
Definition in file quickfun.c.
      
  | 
  
| 
 
 Definition at line 9 of file quickfun.c.  | 
  
      
  | 
  
| 
 
 Definition at line 16 of file quickfun.c.  | 
  
      
  | 
  
| 
 
 Definition at line 17 of file quickfun.c.  | 
  
      
  | 
  
| 
 
 Definition at line 11 of file quickfun.c. Referenced by quick_tanh_setup().  | 
  
      
  | 
  
| 
 
 Definition at line 12 of file quickfun.c.  | 
  
      
  | 
  
| 
 
 Definition at line 18 of file quickfun.c. Referenced by quick_tanh_setup().  | 
  
      
  | 
  
| 
 
 Definition at line 19 of file quickfun.c. Referenced by quick_tanh_setup().  | 
  
      
  | 
  
| 
 
 Definition at line 13 of file quickfun.c. Referenced by quick_tanh_setup().  | 
  
      
  | 
  
| 
 
 Definition at line 14 of file quickfun.c. Referenced by quick_tanh_setup().  | 
  
      
  | 
  
| 
 
 Definition at line 44 of file quickfun.c. Referenced by NNLayer::sigmoid(), and NNLayer::sigmoid_deriv().  | 
  
      
  | 
  
| 
 
 Definition at line 25 of file quickfun.c. References TANH_RANGE0, TANH_SIZE0, TANH_SIZE1, TANH_STEP0, and TANH_STEP1. Referenced by NNLayer::NNLayer().  | 
  
 1.4.6