TestData.h

00001 /*
00002  *====================================================================
00003  * HISTORY:
00004  * -------
00005  * $Log: TestData.h,v $
00006  * Revision 1.2  2008/08/24 19:31:49  samit_ahlawat
00007  * Added file close, some other improvements
00008  *
00009  * Revision 1.1  2008/08/23 14:28:48  samit_ahlawat
00010  * Feed forward neural network library
00011  *
00012  * 
00013  * ID:
00014  * --
00015  * static const char *CvsId = "@(#)$Id: TestData.h,v 1.2 2008/08/24 19:31:49 samit_ahlawat Exp $";
00016  *====================================================================
00017  */
00018 
00019 #ifndef _TEST_DATA_H_
00020 #define _TEST_DATA_H_
00021 
00022 struct TestData
00023 {
00024     double* pData;
00025     double* pOutcome;
00027     int iInputs;
00028     /* Number of outputs */
00029     int iOutputs;
00031     int iSamples;
00032 
00033     TestData(int input, int output, int samples) : iInputs(input), iOutputs(output), iSamples(samples)
00034     {
00035         pData = new double[input*samples];
00036         pOutcome = new double[output*samples];
00037     }
00038 
00039     ~TestData()
00040     {
00041         delete[] pData;
00042         delete[] pOutcome;
00043     }
00044 };
00045 
00046 
00047 #endif // _TEST_DATA_H_
00048 

Generated on Sun Aug 24 17:33:41 2008 by  doxygen 1.4.6