include/lwpr_binio.h

Go to the documentation of this file.
00001 /*********************************************************************
00002 LWPR: A library for incremental online learning
00003 Copyright (C) 2007  Stefan Klanke, Sethu Vijayakumar
00004 Contact: sethu.vijayakumar@ed.ac.uk
00005 
00006 This library is free software; you can redistribute it and/or
00007 modify it under the terms of the GNU Lesser General Public
00008 License as published by the Free Software Foundation; either 
00009 version 2.1 of the License, or (at your option) any later version.
00010 
00011 This library 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 GNU
00014 Library General Public License for more details.
00015 
00016 You should have received a copy of the GNU Lesser General Public
00017 License along with this library; if not, write to the Free
00018 Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019 *********************************************************************/
00020 
00021 
00119 #ifndef __LWPR_BINIO_H
00120 #define __LWPR_BINIO_H
00121 
00122 #include <stdio.h>
00123 
00124 #ifdef __cplusplus
00125 extern "C" {
00126 #endif
00127 
00136 int lwpr_write_binary(const LWPR_Model *model, const char *filename);
00137 
00138 
00147 int lwpr_read_binary(LWPR_Model *model, const char *filename);
00148 
00149 
00158 int lwpr_write_binary_fp(const LWPR_Model *model, FILE *fp);
00159 
00168 int lwpr_read_binary_fp(LWPR_Model *model, FILE *fp);
00169 
00170 
00181 int lwpr_io_write_matrix(FILE *fp,int M, int Ms, int N, const double *data);
00182 
00193 int lwpr_io_read_matrix(FILE *fp, int M, int Ms, int N, double *data);
00194 
00203 int lwpr_io_write_vector(FILE *fp, int N, const double *data);
00204 
00213 int lwpr_io_read_vector(FILE *fp, int N, double *data);
00214 
00222 int lwpr_io_write_scalar(FILE *fp, double data);
00223 
00231 int lwpr_io_read_scalar(FILE *fp, double *data);
00232 
00240 int lwpr_io_write_int(FILE *fp, int data);
00241 
00249 int lwpr_io_read_int(FILE *fp, int *data);
00250 
00258 int lwpr_io_write_rf(FILE *fp, const LWPR_ReceptiveField *RF);
00259 
00268 int lwpr_io_read_rf(FILE *fp, LWPR_SubModel *sub);
00269 
00270 
00271 #ifdef __cplusplus
00272 }
00273 #endif
00274 
00275 #endif

Generated on Wed Apr 2 13:44:42 2008 for LWPR Library by  doxygen 1.4.6