Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

gnn_dataset_view.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *  @file gnn_dataset_view.h
00003  *  @brief Dataset view header file.
00004  *
00005  *  @date   : 30-05-04 22:57
00006  *  @author : Pedro Ortega C. <peortega@dcc.uchile.cl>
00007  *  Copyright  2003  Pedro Ortega C.
00008  ****************************************************************************/
00009 /*
00010  *  This program is free software; you can redistribute it and/or modify
00011  *  it under the terms of the GNU General Public License as published by
00012  *  the Free Software Foundation; either version 2 of the License, or
00013  *  (at your option) any later version.
00014  *
00015  *  This program is distributed in the hope that it will be useful,
00016  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  *  GNU Library General Public License for more details.
00019  *
00020  *  You should have received a copy of the GNU General Public License
00021  *  along with this program; if not, write to the Free Software
00022  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00023  */
00024 
00025 #ifndef _GNN_DATASET_VIEW_H_
00026 #define _GNN_DATASET_VIEW_H_
00027 
00028 
00029 
00030 /******************************************/
00031 /* Include Files                          */
00032 /******************************************/
00033 
00034 #include "gnn_dataset.h"
00035 
00036 
00037 
00038 /******************************************/
00039 /* Typedefs                               */
00040 /******************************************/
00041 
00042 /**
00043  * @brief The datatype for a dataset view.
00044  * @ingroup gnn_dataset_view_doc
00045  *
00046  * This is the datatype for a dataset view.
00047  */
00048 typedef struct _gnn_dataset_view gnn_dataset_view;
00049 
00050 struct _gnn_dataset_view
00051 {
00052     gnn_dataset  set;    /**< The underlying \ref gnn_dataset structure. */
00053     gnn_dataset *data;   /**< A pointer to a dataset.                    */
00054     size_t       start;  /**< The starting index.                        */
00055     size_t       stride; /**< The stride.                                */
00056     size_t       size;   /**< The size.                                  */
00057 };
00058 
00059 
00060 
00061 /******************************************/
00062 /* Public Interface                       */
00063 /******************************************/
00064 
00065 gnn_dataset *
00066 gnn_dataset_view_new (gnn_dataset *data, size_t start, size_t size);
00067 
00068 gnn_dataset *
00069 gnn_dataset_view_with_stride_new (gnn_dataset *data,
00070                                   size_t start, size_t stride, size_t size);
00071 
00072 gnn_dataset *
00073 gnn_dataset_view_get_dataset (gnn_dataset *set);
00074 
00075 #endif /* _GNN_RANDOM_ORDER_H_ */
00076 
00077 
00078 

Generated on Sun Jun 13 20:50:11 2004 for libgnn Gradient Retropropagation Machine Library by doxygen1.2.18