00001 /*************************************************************************** 00002 * @file gnn_logistic.h 00003 * @brief Logistic Sigmoid transfer function. 00004 * 00005 * @date : 10-08-03 01:09 00006 * @author : Pedro Ortega C. <peortega@dcc.uchile.cl> 00007 * Copyright 2003 Pedro Ortega C. 00008 ****************************************************************************/ 00009 /* 00010 * This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your option) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU Library General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU General Public License 00021 * along with this program; if not, write to the Free Software 00022 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00023 */ 00024 00025 #ifndef _GNN_LOGISTIC_H_ 00026 #define _GNN_LOGISTIC_H_ 00027 00028 /******************************************/ 00029 /* Include Files */ 00030 /******************************************/ 00031 00032 #include "gnn_node.h" 00033 00034 /******************************************/ 00035 /* Public Interface */ 00036 /******************************************/ 00037 00038 gnn_node * 00039 gnn_logistic_new (int input_size, double a, double b); 00040 00041 gnn_node * 00042 gnn_logistic_standard_new (int input_size); 00043 00044 double 00045 gnn_logistic_get_a (gnn_node *node); 00046 00047 void 00048 gnn_logistic_set_a (gnn_node *node, double a); 00049 00050 double 00051 gnn_logistic_get_b (gnn_node *node); 00052 00053 void 00054 gnn_logistic_set_b (gnn_node *node, double b); 00055 00056 #endif /* _GNN_LOGISTIC_H_ */ 00057
1.2.18