]> Creatis software - CreaPhase.git/blob - octave_packages/nnet-0.1.13/__printAdaptFcn.m
Add a useful package (from Source forge) for octave
[CreaPhase.git] / octave_packages / nnet-0.1.13 / __printAdaptFcn.m
1 ## Copyright (C) 2006 Michel D. Schmid <michaelschmid@users.sourceforge.net>
2 ##
3 ## This program is free software; you can redistribute it and/or modify it
4 ## under the terms of the GNU General Public License as published by
5 ## the Free Software Foundation; either version 2, or (at your option)
6 ## any later version.
7 ##
8 ## This software is distributed in the hope that it will be useful, but
9 ## WITHOUT ANY WARRANTY; without even the implied warranty of
10 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 ## General Public License for more details.
12 ##
13 ## You should have received a copy of the GNU General Public License
14 ## along with this software; see the file COPYING.  If not, see
15 ## <http://www.gnu.org/licenses/>.
16
17 ## -*- texinfo -*-
18 ## @deftypefn {Function File} {} __printAdaptFcn (@var{fid})
19 ## @code{printMLPHeader} saves the header of a  neural network structure
20 ## to a *.txt file with identification @code{fid}.
21 ## @end deftypefn
22
23 ## Author: Michel D. Schmid
24
25 function __printAdaptFcn(fid,net)
26
27   if isfield(net,"adaptFcn")
28     if isempty(net.adaptFcn)
29       fprintf(fid,"            adaptFcn:  '%s'\n","empty");
30     else
31       fprintf(fid,"            adaptFcn:  '%s'\n",net.adaptFcn);
32     endif
33   endif
34
35 endfunction