Click here to Skip to main content
15,910,661 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can i change style of static text control caption in ATL? Pin
Hamid_RT20-Jun-08 0:44
Hamid_RT20-Jun-08 0:44 
QuestionVC++ Pin
sreedevi kolli19-Jun-08 22:56
sreedevi kolli19-Jun-08 22:56 
AnswerRe: VC++ [modified] Pin
Nibu babu thomas19-Jun-08 23:06
Nibu babu thomas19-Jun-08 23:06 
QuestionCopy directory Pin
kindaichinisan19-Jun-08 22:01
kindaichinisan19-Jun-08 22:01 
AnswerRe: Copy directory Pin
Hamid_RT19-Jun-08 22:06
Hamid_RT19-Jun-08 22:06 
Questiondll export Pin
shakumar_2219-Jun-08 21:11
shakumar_2219-Jun-08 21:11 
AnswerRe: dll export Pin
CPallini19-Jun-08 21:19
mveCPallini19-Jun-08 21:19 
QuestionLow-pass filter questions Pin
jeremie.delaitre19-Jun-08 20:36
jeremie.delaitre19-Jun-08 20:36 
Hello,

I have curve data into an array and I need to apply a low-pass filter (Bessel and Butterworth) on it.
The sampling rate of my data is not constant (for example, I get a value at 1s, then 1.2s, then 1.8s...).
As I said, the curve data are in an array, and the corresponding timestamps are in another :
double time[] = { 1.0, 1.2, 1.8, ... }
double value[] = { 3.1, 4.4, 5.0, ... }

By reading wikis and web sites, it seems that applying a low-pass filter will attenuate the high frequencies (i.e. higher that the cutoff frequency). The attenuation will depend of the type of the filter (Bessel, Butterworth, ...) and its order.
Please tell me if I am wrong!

In other words and in my case, if I have two timestamps which are "to close" (for example : 1/(time[1]-time[0]) > cutoff), I need to modify the corresponding value (value [1]). The new value will be given by the transfer function (which depends, again, of the type of the filter and its order).
Is that right or I am totaly lost ?

If all of this is right, then, how to get the new value ? Taking a look to wikipedia tells me a lot about bessel/butterworth transfer functions, but I do not understand how to apply them.
Could someone provide me an algorithm ?

If all of this is wrong, then, could you please correct me ?

Thanks in advance.
GeneralRe: Low-pass filter questions Pin
CPallini19-Jun-08 21:09
mveCPallini19-Jun-08 21:09 
GeneralRe: Low-pass filter questions Pin
jeremie.delaitre19-Jun-08 21:55
jeremie.delaitre19-Jun-08 21:55 
AnswerRe: Low-pass filter questions Pin
Nelek19-Jun-08 22:55
protectorNelek19-Jun-08 22:55 
GeneralRe: Low-pass filter questions Pin
jeremie.delaitre19-Jun-08 23:34
jeremie.delaitre19-Jun-08 23:34 
GeneralRe: Low-pass filter questions Pin
Nelek19-Jun-08 23:43
protectorNelek19-Jun-08 23:43 
QuestionRe: Low-pass filter questions Pin
jeremie.delaitre19-Jun-08 23:22
jeremie.delaitre19-Jun-08 23:22 
AnswerRe: Low-pass filter questions Pin
Nelek20-Jun-08 0:29
protectorNelek20-Jun-08 0:29 
QuestionRe: Low-pass filter questions Pin
jeremie.delaitre20-Jun-08 2:49
jeremie.delaitre20-Jun-08 2:49 
AnswerRe: Low-pass filter questions Pin
Nelek20-Jun-08 3:09
protectorNelek20-Jun-08 3:09 
GeneralRe: Low-pass filter questions Pin
jeremie.delaitre20-Jun-08 3:23
jeremie.delaitre20-Jun-08 3:23 
Answerhttp://www.musicdsp.org Pin
div!sion20-Jun-08 0:24
div!sion20-Jun-08 0:24 
GeneralRe: http://www.musicdsp.org Pin
jeremie.delaitre20-Jun-08 3:10
jeremie.delaitre20-Jun-08 3:10 
AnswerRe: Low-pass filter questions Pin
cp987620-Jun-08 0:55
cp987620-Jun-08 0:55 
GeneralRe: Low-pass filter questions Pin
jeremie.delaitre20-Jun-08 3:01
jeremie.delaitre20-Jun-08 3:01 
GeneralRe: Low-pass filter questions Pin
Nelek20-Jun-08 3:12
protectorNelek20-Jun-08 3:12 
QuestionTerminal Server [modified] Pin
subramanyeswari19-Jun-08 19:53
subramanyeswari19-Jun-08 19:53 
AnswerRe: Terminal Server Pin
Naveen19-Jun-08 21:38
Naveen19-Jun-08 21:38 

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.