Click here to Skip to main content
15,388,979 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: matrix svd decomposition problem Pin
CPallini29-Sep-14 5:17
mveCPallini29-Sep-14 5:17 
QuestionWill casting / passing 16 bit int as double harm FFT processing? Pin
Vaclav_27-Sep-14 6:33
MemberVaclav_27-Sep-14 6:33 
AnswerRe: Will casting / passing 16 bit int as double harm FFT processing? Pin
Rick York27-Sep-14 8:02
mveRick York27-Sep-14 8:02 
GeneralRe: Will casting / passing 16 bit int as double harm FFT processing? Pin
Vaclav_27-Sep-14 9:05
MemberVaclav_27-Sep-14 9:05 
AnswerRe: Will casting / passing 16 bit int as double harm FFT processing? Pin
Richard MacCutchan27-Sep-14 22:07
mveRichard MacCutchan27-Sep-14 22:07 
GeneralRe: Will casting / passing 16 bit int as double harm FFT processing? Pin
Vaclav_28-Sep-14 4:18
MemberVaclav_28-Sep-14 4:18 
GeneralRe: Will casting / passing 16 bit int as double harm FFT processing? Pin
Richard MacCutchan28-Sep-14 4:40
mveRichard MacCutchan28-Sep-14 4:40 
GeneralRe: Will casting / passing 16 bit int as double harm FFT processing? Pin
Vaclav_28-Sep-14 6:10
MemberVaclav_28-Sep-14 6:10 
Richard,
I read it as you have redefined int variable as double variable.

OK, this is getting into "what if" area.
I am going to build the raw data as double to start with and later on find a microprocessor with more RAM than this one so I do not have to limit the sample length.

Here is yet another question - because the original data is 10 bits and I do not want to carry any garbage in unused bits - how do I mask the 10 bits into double ( 32 bits) variable?
Which in these four 8 bits are the value and which are after the "decimal points" values?
Sorry , I just do not know the proper mathematical English terms.
Or maybe I just use "redefinition" from int to double on the result of the AD conversion, as you suggested, just KISS.



BTW as I suspected - the original raw data gets processed few times over to various FFT data. I need to analyze the original code to find out how did the raw data started as int array and was processed into double. IMHO that would messed up the memory big time - unless the int array dimension is doubled to make room for the half sized double array.
FFT results are "symetrical" , thus the "samples" are cut in half.
Fun.
Cheers Vaclav
GeneralRe: Will casting / passing 16 bit int as double harm FFT processing? Pin
Richard MacCutchan28-Sep-14 6:41
mveRichard MacCutchan28-Sep-14 6:41 
GeneralRe: Will casting / passing 16 bit int as double harm FFT processing? Pin
Vaclav_28-Sep-14 8:35
MemberVaclav_28-Sep-14 8:35 
GeneralRe: Will casting / passing 16 bit int as double harm FFT processing? Pin
Richard MacCutchan28-Sep-14 21:58
mveRichard MacCutchan28-Sep-14 21:58 
GeneralRe: Will casting / passing 16 bit int as double harm FFT processing? Pin
Vaclav_29-Sep-14 4:06
MemberVaclav_29-Sep-14 4:06 
GeneralRe: Will casting / passing 16 bit int as double harm FFT processing? Pin
Richard MacCutchan29-Sep-14 5:27
mveRichard MacCutchan29-Sep-14 5:27 
AnswerRe: Will casting / passing 16 bit int as double harm FFT processing? Pin
Albert Holguin29-Sep-14 9:36
professionalAlbert Holguin29-Sep-14 9:36 
GeneralSOLVED Will casting / passing 16 bit int as double harm FFT processing? YES Pin
Vaclav_29-Sep-14 17:13
MemberVaclav_29-Sep-14 17:13 
QuestionConverting a string to a double Pin
Richard Andrew x6426-Sep-14 20:53
professionalRichard Andrew x6426-Sep-14 20:53 
AnswerRe: Converting a string to a double Pin
Richard MacCutchan26-Sep-14 21:35
mveRichard MacCutchan26-Sep-14 21:35 
AnswerRe: Converting a string to a double Pin
Jochen Arndt26-Sep-14 21:41
professionalJochen Arndt26-Sep-14 21:41 
QuestionSigned integers considered harmful? Pin
harold aptroot26-Sep-14 8:38
Memberharold aptroot26-Sep-14 8:38 
AnswerRe: Signed integers considered harmful? Pin
Chris Losinger26-Sep-14 8:46
professionalChris Losinger26-Sep-14 8:46 
GeneralRe: Signed integers considered harmful? Pin
PIEBALDconsult26-Sep-14 9:02
professionalPIEBALDconsult26-Sep-14 9:02 
AnswerRe: Signed integers considered harmful? Pin
Richard Andrew x6426-Sep-14 9:02
professionalRichard Andrew x6426-Sep-14 9:02 
GeneralRe: Signed integers considered harmful? Pin
harold aptroot26-Sep-14 10:15
Memberharold aptroot26-Sep-14 10:15 
AnswerRe: Signed integers considered harmful? Pin
jeron126-Sep-14 9:17
Memberjeron126-Sep-14 9:17 
GeneralRe: Signed integers considered harmful? Pin
Chris Losinger26-Sep-14 9:22
professionalChris Losinger26-Sep-14 9:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.