PLearn 0.1
Public Member Functions
PLearn::PLMathInitializer Class Reference

#include <pl_math.h>

List of all members.

Public Member Functions

 PLMathInitializer ()
 ~PLMathInitializer ()

Detailed Description

Definition at line 281 of file pl_math.h.


Constructor & Destructor Documentation

PLearn::PLMathInitializer::PLMathInitializer ( )

Fill the tanh table

Definition at line 60 of file pl_math.cc.

References i, MAXTANHX, PLearn::tanh(), PLearn::tanhtable, and TANHTABLESIZE.

{
    real scaling = MAXTANHX/(TANHTABLESIZE-1);
    for(int i=0; i<TANHTABLESIZE; i++)
        tanhtable[i] = (float) tanh(i*scaling);
}

Here is the call graph for this function:

PLearn::PLMathInitializer::~PLMathInitializer ( )

Definition at line 68 of file pl_math.cc.

{}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines