   {
     return 1.0 / ( 1.0 + exp(-n) );
   }
-    
+
   static T derivLinear( T n )
   {
     return 1.0;
   }
-  
+
   static T derivSigmoid( T n )
   {
     return n * ( 1.0 - n );

}




#include <EEPROM.h>


enum ActType{ 
  linear = 0, sigmoid, tangenth, none, bias };



template <class T>
class funcs
{
public:
  static T actBias( T n )
  {
    return 1.0;
