DGtal 1.3.0
|
#include <DGtal/math/Signal.h>
Public Types | |
typedef TValue | Value |
Public Member Functions | |
SignalData () | |
void | init (unsigned int s, int z=0, bool p=false, const Value &def=Value(0)) |
void | init (const Value *t, unsigned int size, int z=0, bool p=false, const Value &def=Value(0)) |
SignalData (unsigned int s, int z=0, bool p=false, const Value &def=Value(0)) | |
SignalData (const Value *t, unsigned int size, int z=0, bool p=false, const Value &def=Value(0)) | |
~SignalData () | |
SignalData (const SignalData &other) | |
SignalData & | operator= (const SignalData &other) |
const Value & | defaut () const |
Data Fields | |
Value * | data |
a dyn. array on Value s. More... | |
unsigned int | size |
the size of the array data. More... | |
int | zero |
the true index of the zero abscissa. More... | |
bool | periodic |
Represents the signal data.
TValue | the type chosen for each sample (generally float or double). |
typedef TValue DGtal::SignalData< TValue >::Value |
DGtal::SignalData< TValue >::SignalData | ( | ) |
Constructor. The object is not valid.
DGtal::SignalData< TValue >::SignalData | ( | unsigned int | s, |
int | z = 0 , |
||
bool | p = false , |
||
const Value & | def = Value(0) |
||
) |
Constructor.
s | the number of data in the signal. |
z | the index of the zero-th element. |
p | 'true' if the signal is periodic. |
def | the default value. |
DGtal::SignalData< TValue >::SignalData | ( | const Value * | t, |
unsigned int | size, | ||
int | z = 0 , |
||
bool | p = false , |
||
const Value & | def = Value(0) |
||
) |
Constructor.
t | the array containing initial data. |
size | the size of the signal. |
z | the index of the zero-th element. |
p | 'true' if the signal is periodic. |
def | the default value. |
DGtal::SignalData< TValue >::~SignalData | ( | ) |
Destructor.
DGtal::SignalData< TValue >::SignalData | ( | const SignalData< TValue > & | other | ) |
Copy constructor.
other | the data to clone. |
const Value & DGtal::SignalData< TValue >::defaut | ( | ) | const |
Default value.
void DGtal::SignalData< TValue >::init | ( | const Value * | t, |
unsigned int | size, | ||
int | z = 0 , |
||
bool | p = false , |
||
const Value & | def = Value(0) |
||
) |
Initializer.
t | the array containing initial data. |
size | the size of the signal. |
z | the index of the zero-th element. |
p | 'true' if the signal is periodic. |
def | the default value. |
void DGtal::SignalData< TValue >::init | ( | unsigned int | s, |
int | z = 0 , |
||
bool | p = false , |
||
const Value & | def = Value(0) |
||
) |
Initializer.
s | the number of data in the signal. |
z | the index of the zero-th element. |
p | 'true' if the signal is periodic. |
def | the default value. |
SignalData & DGtal::SignalData< TValue >::operator= | ( | const SignalData< TValue > & | other | ) |
Assignment.
other | the data to clone. |
Value* DGtal::SignalData< TValue >::data |
bool DGtal::SignalData< TValue >::periodic |
unsigned int DGtal::SignalData< TValue >::size |
int DGtal::SignalData< TValue >::zero |