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

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

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

revision 1.9 by exos, Thu Sep 11 05:00:21 2003 UTC revision 1.10 by exos, Thu Sep 11 22:45:21 2003 UTC
# Line 62  class DiscSignal: public Type { Line 62  class DiscSignal: public Type {
62  public:  public:
63    /** \name Ctor & dtor.                                                          /** \name Ctor & dtor.                                                      
64     ** \{ */     ** \{ */
65      
66    /** \brief Construct a new type of continuous signal    /** \brief Construct a new type of continuous signal
67       ** \param data: data witch represents signal in double
68       ** \param length: length of data, it's the number of double, be carefull, it should be allocated
69     */     */
 public:  
   DiscSignal(double *data) : Type(data)  
   {  
   };  
70    DiscSignal(double *data, int length) : Type(data, length)    DiscSignal(double *data, int length) : Type(data, length)
71    {    {
72    };    };
# Line 77  public: Line 75  public:
75    /** \name Operations    /** \name Operations
76     ** \{ */     ** \{ */
77    
78      /** \brief Adds two discret signal point by point
79       ** \param src: signal to add to this
80       */
81    DiscSignal &add ( DiscSignal &src1 );    DiscSignal &add ( DiscSignal &src1 );
82    /** \brief Overload operator, add his two paramters    /** \brief Overload operator +
83     ** \param src: signal to add to this     ** \param src: signal to add to this
84     */     */
85    DiscSignal &operator+(DiscSignal &src)    DiscSignal &operator+(DiscSignal &src)
86    {return this->add(src);};    {return this->add(src);};
87    
88    
89      /** \brief Substracts two discret signal point by point
90       ** \param src: signal to substract to this
91       */
92    DiscSignal &sub ( DiscSignal &src );    DiscSignal &sub ( DiscSignal &src );
93    /** \brief Overload operator -, substract his two paramters  
94      /** \brief Overload operator -
95     ** \param src: signal to substract to this     ** \param src: signal to substract to this
96     */     */
97    DiscSignal &operator-(DiscSignal &src)    DiscSignal &operator-(DiscSignal &src)
98    {return this->sub(src);};    {return this->sub(src);};
99    
100    
101        /** \brief Multiplies two discret signal point by point
102    void  perl_capture();     ** \param src: signal to multiply to this
103       */
104    
105    DiscSignal &mult ( DiscSignal &src1, DiscSignal &src2 );    DiscSignal &mult ( DiscSignal &src1, DiscSignal &src2 );
106    
107    /** \brief Overload operator *    /** \brief Overload operator *
108       ** \param src: signal to multiply to this
109     */     */
110    DiscSignal &operator*(DiscSignal &src1)    DiscSignal &operator*(DiscSignal &src1)
111    {return this->mult(*this, src1);};    {return this->mult(*this, src1);};
# Line 118  public: Line 125  public:
125     */     */
126    DiscSignal &DiscSignal::concat ( DiscSignal &src1, DiscSignal &src2 );    DiscSignal &DiscSignal::concat ( DiscSignal &src1, DiscSignal &src2 );
127    
128    /** \brief    /** \brief Creates a new signal from this. this new signal is the result
129     ** \param src: data to put in first     ** of Sout[i] = Sin[i] * (0.54 - 0.46 cos(2 * pi * i) / lenght(Sin))
130       ** with Sin, the initial signal and Sout, the result.
131     */     */
132    DiscSignal &DiscSignal::hamming ( ) const;    DiscSignal &DiscSignal::hamming ( ) const;
   
   
   DiscSignal &DiscSignal::truncate ( DiscSignal &src, const int begin, const int end );  
133        
134    /** \brief min return position of the min value in the signal    /** \brief min return position of the min value in the signal
135     */     */
# Line 140  public: Line 145  public:
145    double DiscSignal::max_val ();    double DiscSignal::max_val ();
146    /** \} */    /** \} */
147    
148      /** \name Perl interfacing
149       ** \{ */
150      
151      /** \brief take signal and say to perl module that he should print it
152       */
153      void  perl_capture();
154      /** \} */
155    
156      
157    
158  };  };
159    
160  #endif  #endif

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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