Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

DataSample.hpp

00001 #ifndef __DataSample__
00002 #define __DataSample__
00003 
00021 #include <stdio.h>
00022 
00023 class DataSample 
00024 {
00025 private:
00026 
00027 int                     iObject;
00028 
00029 int                     n, nmax;
00030 int                     dim;
00031 
00032 double**        data;
00033 
00034 public:
00035 
00036 DataSample(int iObj, int nMax, int dimension=3);
00037 ~DataSample();
00038 
00039 int     getLabel(){ return iObject; }
00040 
00041 int     numberOfData(){return n;}
00042 int     getDimension(){return dim;}
00043 
00044 void setLast(int dimension, double value){ data[dimension][n]= value; }
00045 void increment();       
00046 
00047 double get(int i){ return data[0][i]; }
00048 void set(int i, double value){ data[0][i]= value; }
00049 
00050 double get(int dimension, int i){ return data[dimension][i]; }
00051 void set(int dimension, int i, double value){ data[dimension][i]= value; }
00052 
00053 
00054 
00055 virtual void output()
00056         {
00057         printf("DataSample[%d,%d]", dim, n);
00058         }                               
00059 };
00060 
00061 #endif
SourceForge.net Logo
Restoreinpaint sourceforge project `C++/Java Image Processing, Restoration, Inpainting Project'.

Bernard De Cuyper: Open Project Leader: Concept, design and development.
Bernard De Cuyper & Eddy Fraiha 2002, 2003. Bernard De Cuyper 2004. Open and free, for friendly usage only.
Modifications on Belgium ground of this piece of artistic work, by governement institutions or companies, must be notified to Bernard De Cuyper.
bern_bdc@hotmail.com