#include <staticSignal.h>
Collaboration diagram for sptk::StaticSignal:

The length of the signal is constant after the object is created. The signal values at different time indeces can be changed at will though.
Public Member Functions | |
| StaticSignal (void) | |
| Default Constructor.   | |
| StaticSignal (const int length) | |
| Constructor initialising a StaticSignal object of a given length.   | |
| StaticSignal (const StaticSignal &s) | |
| Copy constructor.   | |
| ~StaticSignal () | |
| Destructor.  | |
| int | getLength (void) | 
| Returns the length of the signal.  | |
| double | getEnergy (void) | 
| Returns the mean-square-value of the signal.  | |
| void | dcShift (mutk::Complex &dcValue) | 
| DC level shifter.   | |
| mutk::Complex | corr (int lag) | 
Returns the auto-correlation of the signal with the specified lag.   | |
| void | setValue (int n, const mutk::Complex &value) | 
Sets the signal value at index n to the value given by value.   | |
| mutk::Complex | getValue (int n) | 
Returns the signal value at index n.   | |
| StaticSignal | operator+ (const StaticSignal s) | 
| Overloaded operator +.   | |
| StaticSignal | operator- (const StaticSignal s) | 
| Overloaded operator -.   | |
| StaticSignal | operator * (const StaticSignal s) | 
| Overloaded operator *.   | |
| void | operator= (const StaticSignal s) | 
| Overloaded operator=.   | |
Protected Attributes | |
| mutk::Complex * | data | 
| Pointer to signal data.   | |
      
  | 
  
| 
 Default Constructor. 
  | 
  
      
  | 
  
| 
 Constructor initialising a StaticSignal object of a given length. 
  | 
  
      
  | 
  
| 
 Copy constructor. 
  | 
  
      
  | 
  
| 
 
Returns the auto-correlation of the signal with the specified  
 
If   | 
  
      
  | 
  
| 
 DC level shifter. 
  | 
  
      
  | 
  
| 
 
Returns the signal value at index  
  | 
  
      
  | 
  
| 
 Overloaded operator *. 
  | 
  
      
  | 
  
| 
 Overloaded operator +. 
  | 
  
      
  | 
  
| 
 Overloaded operator -. 
  | 
  
      
  | 
  
| 
 Overloaded operator=. 
  | 
  
      
  | 
  ||||||||||||
| 
 
Sets the signal value at index  
  | 
  
      
  | 
  
| 
 Pointer to signal data. 
  | 
  
 1.3.7