What is the average time to do a pass when data is read after a period of time?

  • Context: Undergrad 
  • Thread starter Thread starter cpscdave
  • Start date Start date
  • Tags Tags
    Average Data Time
Click For Summary

Discussion Overview

The discussion revolves around modeling the average time to perform data reads from a set of controllers when some data points are read less frequently. Participants are exploring how to calculate the average time per pass under a new reading strategy that alternates between reading all data points and selectively reading some data points after a certain period.

Discussion Character

  • Exploratory, Technical explanation, Mathematical reasoning

Main Points Raised

  • One participant describes the current method of reading data points from controllers and proposes a new model where not all data points are read in every pass.
  • Another participant suggests calculating the average time per pass by determining the fraction of data B that gets read and combining it with the time taken to read data A.
  • A third participant expresses confusion about the calculations involving the fraction of scans where data B is read and presents a formula that seems incorrect to them.
  • A later reply indicates that the formula presented by the third participant appears correct to them, though no consensus is reached on its validity.

Areas of Agreement / Disagreement

Participants have not reached a consensus on the correct formula for calculating the average time per pass, with some expressing confidence in their calculations while others remain uncertain.

Contextual Notes

The discussion includes unresolved assumptions about the definitions of variables and the conditions under which the average time is calculated. The relationship between the time taken to read data A and B is not fully clarified.

cpscdave
Messages
402
Reaction score
120
Hi there,
I'm trying to model how much faster we will be able to pull data from a set of controllers.
I know how long it takes to read a single data point from each controller.
Right now we are reading each and every data point.

The change I would like to model is some of the data isn't read each pass. But instead read after a period of time during that next pass.

So if we have 2 sets of data A and B
Right now each pass reads A and B and takes x seconds

The change will result in
Pass 1: A & B
Pass 2: A
Pass 3: A
... so many seconds elapse:
Pass N: A& B

How do I figure out the average time it takes to do a pass in the second case??

Thanks :)
 
Physics news on Phys.org
How does that look in time?

"We read A for two seconds, then B for two seconds, then A for two seconds, then A for two seconds,. ..."?
Then all you need is the average fraction B that gets read, multiply by the time it takes, add the time for A and you have your average time per pass.
 
Thats what I originally did.
The problem I ran into is when I follow that through:
A: Time to read the data each loop
B: Time to read the data on
C: the fraction of scans where B is read
Time = A + C*B

So now I need to figure out what C is which I figure is Time/M (M is how often to scan the data)
So solving that out I end up with Time = A*M/(M-B)
Which doesn't seem right.
 
Looks right to me.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 23 ·
Replies
23
Views
4K
Replies
24
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 26 ·
Replies
26
Views
2K
  • · Replies 19 ·
Replies
19
Views
8K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
7
Views
3K