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