Martsis John
10-06-2006, 06:32 AM
WORST CODE EVER SEEN!!!
I am sorry to say this...I have been programming for many years with C/C++ and when I read Numerical recipies with C++ I realised that the routines given in the book are the,
WORST
NOT WELL WRITTEN
CONFUSING
examples I HAVE EVER SEEN
Guys...
Why do you make life difficult???
The use of so many loops and variables is not a good practice in C++. Maybe you should study some good book about C++ and OOP.
Also I don't see any difference in routines from NR with C and NR with C++. DID U FORGET about classes and object oriented programming
Being good in DSP theory and in programming are two distinct things!
I have developed my own programs for FFT and spectrum estimation of real and complex data since your four1 simply does not work as given in the book.
Please revise your code to OOP because it is OLD and not well written!
ALSO..Next time use MATLAB or OpenGL programming to visualise your results
I am sorry to say this...I have been programming for many years with C/C++ and when I read Numerical recipies with C++ I realised that the routines given in the book are the,
WORST
NOT WELL WRITTEN
CONFUSING
examples I HAVE EVER SEEN
Guys...
Why do you make life difficult???
The use of so many loops and variables is not a good practice in C++. Maybe you should study some good book about C++ and OOP.
Also I don't see any difference in routines from NR with C and NR with C++. DID U FORGET about classes and object oriented programming
Being good in DSP theory and in programming are two distinct things!
I have developed my own programs for FFT and spectrum estimation of real and complex data since your four1 simply does not work as given in the book.
Please revise your code to OOP because it is OLD and not well written!
ALSO..Next time use MATLAB or OpenGL programming to visualise your results