00001 /*********************************************************************** 00002 Copyright (C) 2005,2006 Frédéric HENRY <neryel@reveries.info> 00003 00004 This file is part of ASpiReNN. 00005 00006 ASpiReNN is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published 00008 by the Free Software Foundation; either version 2 of the License, 00009 or (at your option) any later version. 00010 00011 ASpiReNN is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with ASpiReNN; if not, write to the Free Software 00018 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 00019 02111-1307 USA. 00020 00021 ***********************************************************************/ 00022 00023 #ifndef _LEARNING_H_ 00024 #define _LEARNING_H_ 00025 00026 #include "object.h" 00027 00045 typedef void (* aspi_learning_rule_t) (aspi_object_t * net, int from_begin, int from_end, int to_begin, int to_end, double alpha_plus, double alpha_neg); 00046 00047 void aspi_learning_set_wmax (double wmax); 00048 double aspi_learning_get_wmax (void); 00049 00050 00053 #endif /* _LEARNING_H_ */