|
Well, I can say now : it is pretty clear !
I understand the problem of the input signal but it is not possible to have the function. The data provides from experimental measurements.
As you say in your other post, I will ask a clear specification of what my client wants.
In any cases, I have learned a lot of things so it was not time loss.
I really want to thank you again...so..thank you !
|
|
|
|
|
Have a look at http://www.musicdsp.org/archive.php?classid=3#237
|
|
|
|
|
I will have a look, thanks.
|
|
|
|
|
jeremie.delaitre wrote: The sampling rate of my data is not constant (for example, I get a value at 1s, then 1.2s, then 1.8s...).
In that case you have to think very carefully what your data actually represents, and it is not clear from your post. Applying any of the standard linear filtering techniques will cause the amplitude of the signal to increase in areas where there are more samples, this is a simple consequence of linearity. The standard filters, like the ones you mention, are defined in the frequency domain, so there is an inherent assumption of linearity.
It may help your thinking to consider what should happen if you add a second sample very close to one of your existing ones. If you would expect the effect of this to be almost identical to doubling the amplitude of the original sample, then proceeed with the linear filtering option.
If you expect the effect of a second sample to simply increase the certainty with which you know the sample value, then what you really want is some form of curve fitting, and for this numerical recipes would be a good starting point.
Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."
|
|
|
|
|
Yes you are right, I must think about it.
I understand the problem now as I understand a little bit more linear filtering.
I do not know if this if the case of my client, so I will ask him
In fact, I think he wants really linear filtering, but I did not explain me the problem very precisely...
Thanks for pointing me that problem.
|
|
|
|
|
I strongly recommend you to speak with your client and make the guidelines as much clear as you can get them, with all the specifications that he wants, how the inputs are going to be and how the outputs should be.
If linear filtering is the point... you can pretty forget about my other posts :P
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Hi,
How do i check whether terminal server is enabled or not programmatically(VC++ or winSDK)
I am using GetSystemMetrics( SM_REMOTESESSION ) API to know whether terminal server is running or not. But on compiling i am getting 'SM_REMOTESESSION' : undeclared identifier compiler error. My environment is windows 2003 server VS6.0 with sp6.0
Thanks,
modified on Friday, June 20, 2008 2:59 AM
|
|
|
|
|
subramanyeswari wrote: But on compiling i am getting 'SM_REMOTESESSION' : undeclared identifier compiler error. My environment is windows 2003 server VS6.0 with sp6.0
You need to install the latest platform SDK to get the update header file. The value of SM_REMOTESESSION is defined as 0x1000. So if you dont want to download, just define SM_REMOTESESSION in your code.
#define SM_REMOTESESSION 0x1000
|
|
|
|
|
|
I am reading the registry to check whether terminal server is enabled or not in the following path
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server
\TSEnabled.
How to disable Terminal Server. Is there any other way.
My working environment is windows 2003 server. I am using Manage your server>Add or remove role.
But still the value of TSEnabled is 1. Why it is not updating the registry
modified on Friday, June 20, 2008 7:01 AM
|
|
|
|
|
You better look in the SDK where SM_REMOTESESSION is defined. There you see for what systems you got to compile. I guess NT >= 5, and SP4. Change in the stdafx.h.
Check error conditions carefully. The strangest is most to cut the connection by pluging out the network cable. (This belongs to our Release Tests)
If you should consider to use a never Visual Studio.
Greetings from Germany
|
|
|
|
|
thanks for your reply.
I tried this in 2005 to test. this is my code
if(::GetSystemMetrics(SM_REMOTESESSION ) == 0)
{
::AfxMessageBox(_T("no"),NULL,NULL);
}
else
{
::AfxMessageBox(_T("yes"),NULL,NULL);
}
this displayed no as per the msdn
If the calling process is associated with a Terminal Services client session, the return value is nonzero. If the calling process is associated with the Terminal Services console session, the return value is 0.
I will tell why i want to check whether terminal server is enabled or not. I want to load two dll's if terminal server is enabled other wise i don't want. for that i am reading the registry for TSEnabled value. It is one as i configured Terminal Server. Even after disabling the value is 1 only. Mine is freshly formatted system with windows 2003 server installed. Why the registry is not getting updated.
Is there any other solution.
Regards
|
|
|
|
|
Hi All,
I want to develop project for Windows mobile in which I want to add functionality for Video Conferencing by using SIP(Session initiation Protocol. So Is there any free class library in C++, C# which support video support video conferencing on Windows mobile6.0
Thanks
Atul
|
|
|
|
|
The following projects might assist you to get started:
OPAL[^] in Voxgratia. It supports fax, voice and video over SIP and H323 as well.
Open Video Conference[^]
Openmeeting[^]
All of these works on 32 bit windows, but when you say Windows mobile, I do not know how much of help these projects may provide you.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Hai,
how to convert a word document\PDF file to Enhanced metafile. Is any API is available.Please help me if any of u know any tips please.
Thanks
|
|
|
|
|
for word document, i think you can use COM interfaces provided by microsoft.
But for PDF file, i have no idea, maybe you can use its virtual print service.
You can look up them on the internet for more exactly details.
|
|
|
|
|
A while ago, I asked a question about,
error C2061: syntax error : identifier 'CEvent'
in a .dll project. My dev env is vs 2005 sp1, but I get this error in 6.0 too. So last time you told me to make sure I include afxmt.h, where CEvent is defined. I dropped this into stdafx.h
Now, it tells me,
1>e:\program files\microsoft visual studio 8\vc\atlmfc\include\afxv_w32.h(16) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
</windows.h>
afxmt.h is an MFC header, right? How do I get around this..?
|
|
|
|
|
bulg wrote: How do I get around this..?
Googling for [^]?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
You need to change your project in a MFC-Project (Headers and project settings) or look in your actual class library if there is an event class.
Or use writing a small Event class to do the CEvent stuff. It is not much.
Greetings from Germany
|
|
|
|
|
Can anybody enlighten me please,
|
|
|
|
|
Check what DLLs it depends on. Have you registered it in the other machine?
Steve
|
|
|
|
|
|
Hello,
Is it possible to re-associate a socket with a different io completion
port? I have an open socket associated with one completion port, I
post a read, handle the read, then want to send some data back on the
socket but have the write complete event be queued to a different io
completion port.
[Big picture is that I have multiple thread pools in a server and want
to move some IO to another thread pool]
Best
Mike
|
|
|
|
|
Mike Curry - Canada wrote: Is it possible to re-associate a socket with a different io completion
port?
I don't believe so. The only way to disassociate a handle from an IO completion port is to close it.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I have a non interactive service running under a local account. This service starts a process in each desktop by locating instances of explorer.exe then creating a primary token and calling CreateProcessAsUser using that token. Is there a way to get the desktop i.e. winsta0\default for the process I am goint to impersonate?
modified on Thursday, June 19, 2008 7:06 PM
|
|
|
|