32 #include "DGtal/base/Common.h"
33 #include "DGtal/math/Signal.h"
37 using namespace DGtal;
50 double values[ ] = { 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
52 trace.
info() <<
"Unperiodic signal" << endl;
54 for (
unsigned int n = 1; n < 10; ++n )
61 trace.
info() <<
"Periodic signal" << endl;
63 for (
unsigned int n = 1; n < 10; ++n )
78 int main(
int argc,
char** argv )
82 for (
int i = 0; i < argc; ++i )
87 trace.
emphase() << ( res ?
"Passed." :
"Error." ) << endl;
Aim: Represents a discrete signal, periodic or not. The signal can be passed by value since it is onl...
void beginBlock(const std::string &keyword="")
DGtal is the top-level namespace which contains all DGtal functions and types.
int main(int argc, char **argv)