Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > Scientific visualization > Re: How to resa...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 19 of 27 Topic 789 of 833
Post > Topic >>

Re: How to resample continuosly time data to be represented real time ?

by "Skybuck Flying" <BloodyShame@[EMAIL PROTECTED] > May 23, 2008 at 05:53 AM

Actually I once accidently programmed something, which somebody else 
described as a low pass filter, instead of a moving average.

It works like this:

Suppose you are limited to 5 values.

V1 V2 V3 V4 V5

Now value 6 comes in, what you do is this:

V1  V2   V3   V4   V5  V6
  +    +    +    +   +
  /2   /2    /2  /2  /2
  NV1  NV2  NV3   NV4  NV5

Here is the source code version in case the drawing above doesn't come 
through:

V1 to V5 = old values of chart.
V6 = new measurement value

NV1 = (V1 + V2) / 2;
NV2 = (V2 + V3) / 2;
NV3 = (V3 + V4) / 2;
NV4 = (V4 + V5) / 2;
NV5 = (V5 + V6) / 2;

V1 = NV1;
V2 = NV2;
V3 = NV3;
V4 = NV4;
V5 = NV5;

Now it's ready for another measurement and then simply do the same.

This way V6 slowly gets propageted through the other values... but this is

what should happen, since you want a zoomed out view.

So I think this could work...

Let me know how it works out for you.

Bye,
  Skybuck.
 




 27 Posts in Topic:
How to resample continuosly time data to be represented real tim
pamela fluente <pamela  2008-05-21 03:50:34 
Re: How to resample continuosly time data to be represented real
"Skybuck Flying"  2008-05-21 14:54:10 
Re: How to resample continuosly time data to be represented real
pamela fluente <pamela  2008-05-21 07:10:14 
Re: How to resample continuosly time data to be represented real
"Skybuck Flying"  2008-05-21 23:25:09 
Re: How to resample continuosly time data to be represented real
"Skybuck Flying"  2008-05-21 23:28:00 
Re: How to resample continuosly time data to be represented real
"Skybuck Flying"  2008-05-21 23:37:43 
Re: How to resample continuosly time data to be represented real
"Paul E. Black"  2008-05-21 12:54:25 
Re: How to resample continuosly time data to be represented real
pamela fluente <pamela  2008-05-21 15:28:16 
Re: How to resample continuosly time data to be represented real
"Skybuck Flying"  2008-05-22 01:10:43 
Re: How to resample continuosly time data to be represented real
pamela fluente <pamela  2008-05-21 16:55:23 
Re: How to resample continuosly time data to be represented real
"Skybuck Flying"  2008-05-22 08:32:16 
Re: How to resample continuosly time data to be represented real
pamela fluente <pamela  2008-05-22 02:45:37 
Re: How to resample continuosly time data to be represented real
"Skybuck Flying"  2008-05-23 04:22:23 
Re: How to resample continuosly time data to be represented real
LordOfThePi@[EMAIL PROTEC  2008-05-22 08:49:59 
Re: How to resample continuosly time data to be represented real
pamela fluente <pamela  2008-05-22 11:22:21 
Re: How to resample continuosly time data to be represented real
"Skybuck Flying"  2008-05-23 04:31:17 
Re: How to resample continuosly time data to be represented real
"Skybuck Flying"  2008-05-23 05:19:32 
Re: How to resample continuosly time data to be represented real
"Skybuck Flying"  2008-05-23 05:43:27 
Re: How to resample continuosly time data to be represented real
"Skybuck Flying"  2008-05-23 05:53:25 
Re: How to resample continuosly time data to be represented real
"Skybuck Flying"  2008-05-23 06:00:57 
Re: How to resample continuosly time data to be represented real
"Skybuck Flying"  2008-05-23 06:02:22 
Re: How to resample continuosly time data to be represented real
"Skybuck Flying"  2008-05-23 06:18:23 
Re: How to resample continuosly time data to be represented real
pamela fluente <pamela  2008-05-23 11:01:15 
Re: How to resample continuosly time data to be represented real
Patricia Shanahan <pat  2008-05-27 05:52:42 
Re: How to resample continuosly time data to be represented real
"Skybuck Flying"  2008-05-28 19:57:24 
Re: How to resample continuosly time data to be represented real
"Skybuck Flying"  2008-05-28 20:03:12 
Re: How to resample continuosly time data to be represented real
pamela fluente <pamela  2008-06-18 10:30:44 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 13:51:13 CST 2008.