#include <sampled_signal.h>
Inheritance diagram for SampledSignal< T >:
Public Member Functions | |
SampledSignal (long size) | |
SampledSignal constructor. | |
SampledSignal (T *data, unsigned long size) | |
SampledSignal constructor. | |
SampledSignal (const SampledSignal< T > &other, long, long) | |
SampledSignal constructor. | |
T & | at (long index) |
Returns the sample value at index. | |
T | at (long index) const |
Returns the sample value at index. | |
SampledSignal< T > & | add (SampledSignal< T > &, long) |
Adds samples of another signal to the samples of current signal. | |
SampledSignal< T > & | multiply (SampledSignal< T > &, long) |
Multiplies the samples with samples of another SampledSignal and stores back the results. | |
SampledSignal< T > & | applyHanningWindow (long shift, long width, long startIndex, long endIndex) |
Multiplies the samples of the SampledSignal with a Hann function and stores back the results. | |
SampledSignal< T > & | readFromFile (string file_name, long start, long end) |
Reads the values of samples from a binary file. | |
long | size () |
Returns size of the SampledSignal in samples. | |
t_Signal | convertToDSPVector () |
Converts the SampledSignal to the dsp::vector used by BOSS system. | |
void | printTo (ostream &out) |
Prints the content of the signal in a formatted way to an output stream. | |
Private Attributes | |
vector< T > | negative |
vector< T > | positive |
|
SampledSignal constructor.
|
|
SampledSignal constructor.
|
|
SampledSignal constructor.
|
|
Adds samples of another signal to the samples of current signal.
|
|
Multiplies the samples of the SampledSignal with a Hann function and stores back the results.
|
|
Returns the sample value at index.
|
|
Returns the sample value at index.
|
|
Converts the SampledSignal to the dsp::vector used by BOSS system.
|
|
Multiplies the samples with samples of another SampledSignal and stores back the results.
|
|
Prints the content of the signal in a formatted way to an output stream.
|
|
Reads the values of samples from a binary file.
|
|
Returns size of the SampledSignal in samples.
|
|
|
|
|