/[marvin]/marvin/src/libsip/type/contlogsignal.hh
ViewVC logotype

Diff of /marvin/src/libsip/type/contlogsignal.hh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by hannibal, Tue Aug 12 20:42:33 2003 UTC revision 1.5 by exos, Thu Sep 11 22:45:21 2003 UTC
# Line 38  Line 38 
38  * E-mail :  * E-mail :
39  *  *
40  *******************************************************************/  *******************************************************************/
41    
42    /**
43     ** \file constlogsignal.hh
44     ** Define a continuous signal on logarithmique scale
45     */
46    
47  #ifndef CONTLOGSIGNAL_HH  #ifndef CONTLOGSIGNAL_HH
48  #define CONTLOGSIGNAL_HH  #define CONTLOGSIGNAL_HH
49    
50  #include "type.hh"  #include "type.hh"
51    
52    /** \brief Discret signal signal
53     **
54    */
55    
56    
57  class ContLogSignal: public Type {  class ContLogSignal: public Type {
58    // Associations    // Associations
59    // Attributes    // Attributes
60    // Operations    // Operations
61    public:    public:
62    ContLogSignal(double *data) : Type(data)    /** \name Ctor & dtor.                                                      
63    {     ** \{ */
64    };  
65      /** \brief Construct a new type of continuous signal
66       ** \param data: data witch represents signal in double
67       ** \param length: length of data, it's the number of double, be carefull, it should be allocated
68       */
69    ContLogSignal(double *data, int length) : Type(data, length)    ContLogSignal(double *data, int length) : Type(data, length)
70    {    {
71    };    };
72    ContLogSignal &add ( ContLogSignal &src1, ContLogSignal &src2 );    /** \} */
73    ContLogSignal &mult ( ContLogSignal &src1, ContLogSignal &src2 );  
74    ContLogSignal &ContLogSignal::concat ( ContLogSignal &src1, ContLogSignal &src2 );    /** \name Operations
75    ContLogSignal &ContLogSignal::hamming ( ContLogSignal &src );     ** \{ */
76    ContLogSignal &ContLogSignal::truncate ( ContLogSignal &src, const int begin, const int end );  
77      /** \brief Add two continuous signals point to point
78       ** \param src: signal to add to this
79       */
80      ContLogSignal &add ( ContLogSignal &src );
81    
82       /** \brief Overload operator add
83       ** \param src: signal to add to this
84       */
85      ContLogSignal &operator+(ContLogSignal &src)
86      {return this->add(src);};
87    
88      /** \brief Substract two continuous signals
89       ** \param src: signal to substract to this
90       */
91      ContLogSignal &sub ( ContLogSignal &src );
92      
93      /** \brief Overload operator, substract
94       ** \param src: signal to add to this
95       */
96      ContLogSignal  &operator-(ContLogSignal &src)
97      {return this->sub(src);};
98    
99      /** \brief Multiplication operator, not implemented yet
100       */
101      ContLogSignal &mult ( ContLogSignal &src );
102      /** \brief Return the minimun value of the signal, Not implemented
103        */
104    int ContLogSignal::min ( ContLogSignal &src );    int ContLogSignal::min ( ContLogSignal &src );
105      /** \brief Return the maximum value of the signal, Not implemented
106        */
107    int ContLogSignal::max ( ContLogSignal &src );    int ContLogSignal::max ( ContLogSignal &src );
108  };  };
109    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26