Go to the documentation of this file.00001
00004 #ifndef _SIGNAL_HPP_
00005 #define _SIGNAL_HPP_
00006
00007 #include <vector>
00008
00009 namespace cpe
00010 {
00012 class signal
00013 {
00014 public:
00015
00016
00017
00018
00019
00021 signal();
00023 signal(const std::vector<double>& data,double dt);
00024
00025
00026
00027
00028
00030 unsigned int size() const;
00032 const double& operator[](unsigned int k) const;
00034 const double& dt() const;
00035
00036
00037
00038
00039
00041 double max_signal() const;
00042
00043
00044 private:
00045
00047 std::vector<double> data_interne;
00049 double dt_interne;
00050 };
00051 }
00052
00053 #endif