Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-06-02 08:48:23

0001 /*
0002  * NeuralNetworkData.h
0003  *
0004  *  Created on: May 1, 2016
0005  *      Author: Pawel Sznajder
0006  */
0007 
0008 #ifndef NEURALNETWORKDATA_H_
0009 #define NEURALNETWORKDATA_H_
0010 
0011 #include <map>
0012 #include <vector>
0013 
0014 namespace NumA {
0015 
0016 class Data {
0017 
0018 public:
0019 
0020     Data();
0021     Data(unsigned int size);
0022     Data(const Data& other);
0023     virtual ~Data();
0024     Data* clone() const;
0025 
0026     unsigned int getNVariables() const;
0027     unsigned int getNPoints() const;
0028     const std::map<unsigned int, std::vector<double> >& getData() const;
0029     void addData(const std::vector<double>& data);
0030 
0031     void print() const;
0032 
0033     void operator+=(const Data& rhs);
0034 
0035 private:
0036 
0037     unsigned int m_nVariables;
0038     unsigned int m_nPoints;
0039     std::map<unsigned int, std::vector<double> > m_data;
0040 };
0041 
0042 }
0043 
0044 #endif /* NEURALNETWORKDATA_H_ */