X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=octave_packages%2Fnnet-0.1.13%2F__printMLPHeader.m;fp=octave_packages%2Fnnet-0.1.13%2F__printMLPHeader.m;h=8a49dcd7171123119b2ab2255260994f990d880c;hb=c880e8788dfc484bf23ce13fa2787f2c6bca4863;hp=0000000000000000000000000000000000000000;hpb=1705066eceaaea976f010f669ce8e972f3734b05;p=CreaPhase.git diff --git a/octave_packages/nnet-0.1.13/__printMLPHeader.m b/octave_packages/nnet-0.1.13/__printMLPHeader.m new file mode 100644 index 0000000..8a49dcd --- /dev/null +++ b/octave_packages/nnet-0.1.13/__printMLPHeader.m @@ -0,0 +1,43 @@ +## Copyright (C) 2006 Michel D. Schmid +## +## +## This program is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## This program is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; see the file COPYING. If not, see +## . + +## -*- texinfo -*- +## @deftypefn {Function File} {} __printMLPHeader (@var{fid}) +## @code{__printMLPHeader} saves the header of a neural network structure +## to a *.txt file with identification @code{fid}. +## @end deftypefn + +## Author: Michel D. Schmid + +function __printMLPHeader(fid) + + # one empty row + fprintf(fid,"\n"); + # write "net=" + fprintf(fid,"net=\n"); + # next empty row + fprintf(fid,"\n"); + # write "Neural Network object:", insert two spaces.. + fprintf(fid," Neural Network object:\n"); + # next empty row + fprintf(fid,"\n"); + # write "architecture:", insert two spaces.. + fprintf(fid," architecture:\n"); + # one more time an empty row + fprintf(fid,"\n"); + +endfunction \ No newline at end of file