Lightweight Neural Network++ documentation

Visit the lwnnplus home page, download the technical report in english or italian.

Main Page | Class Hierarchy | Class List | File List | Class Members

iomanagebinary.h

00001 #ifndef IOMANAGE_BINARY_H
00002 #define IOMANAGE_BINARY_H
00003 /*
00004  * Lightweight Neural Net ++ - iomanagebinary class
00005  * http://lwneuralnetplus.sourceforge.net/
00006  * 
00007  * This class is used to read and write target files in lwnn - binary format
00008  *
00009  * By Lorenzo Masetti <lorenzo.masetti@libero.it> and Luca Cinti <lucacinti@supereva.it>
00010  *
00011  * This library is free software; you can redistribute it and/or
00012  * modify it under the terms of the GNU Lesser General Public
00013  * License as published by the Free Software Foundation; either
00014  * version 2.1 of the License, or (at your option) any later version.
00015  * 
00016  */
00017 #include "iomanage.h"
00018 #include <stdio.h>
00019 #include <string>
00020 #include <stdexcept>
00021 #include <fstream>
00022 
00023 using namespace std;
00030 class iomanagebinary : public iomanage
00031 {
00032 public:
00036   iomanagebinary();
00037 
00050   virtual void info_from_file (const string & filename, int *npatterns,
00051                               int *ninput, int *noutput);
00070   virtual void load_patterns (const string & filename,
00071                                        float **inputs, float **targets,
00072                                        int ninput, int noutput, int npatterns);
00073 
00085   void write_patterns (const string & filename,
00086                                        float **inputs, float **targets,
00087                                        int ninput, int noutput, int npatterns);
00088 
00094   void convert(const string& sourceformatfn, const string& binformatfn, iomanage* sourceFormatIomanager);
00095 
00096 };
00097 
00098 
00099 #endif
00100 
00101 
00102 
00103 
00104 
00105 
00106 
00107 
00108 
00109 
00110 
00111 
00112 
00113 

Generated on Tue Oct 12 00:32:11 2004 for Lightweight Neural Network ++ by  doxygen 1.3.9