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 14 of 27 Topic 789 of 833
Post > Topic >>

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

by LordOfThePi@[EMAIL PROTECTED] May 22, 2008 at 08:49 AM

Perfectly understandable. You are slightly off-topic here but as I
can't think of anywhere else to give a sartifactory answer, here we
go...

As previously suggested, box-plotting (AKA candlestick) is the
appropriate technique for this problem. If the target audience is not
statistically literate, a simplified version displaying min, max and
mean (as opposed to quartiles and median) may be preferable; in such a
case the data required per box could be:-

{
   float   startTime, endTime;
   float   sampleMin, sampleMax, sampleTotal;
   integer sampleCount;
} Box;

You would declare an array of boxes (any more than 128 boxes is likely
to be a problem for clarity of display) and add one sample value to
each box until the boxes are filled. Once all boxes are filled with
the same number of samples, you must then merge pairs of adjacent
boxes (thus doubling the number of samples per box and halving the
number of boxes). Subsequent samples are then added to the next free
box until it has the same number of samples as previous boxes; then
move onto the next free box and so on. When the boxes are once again
all filled with the same number of samples, merge pairs of adjacent
boxes as before.

Merging is a straightforward operation:

mergedBox.startTime= MIN(box1.startTime, box2.startTime);
mergedBox.endTime= MIN(box1.endTime, box2.endTime);
mergedBox.sampleMin= MIN(box1.sampleMin, box2.sampleMin);
mergedBox.endTime= MIN(box1.sampleMax, box2.sampleMax);
mergedBox.sampleTotal= box1.sampleTotal + box2.sampleTotal;
mergedBox.sampleCount= box1.sampleCount + box2.sampleCount;

The complexity is all in managing the box data structures; using two
lists (source and destination) for the merge process will help to make
it more understandable. Should you require any help with lists, you
definately should not request it from this group...
 




 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:48:53 CST 2008.