This isn't so much a puzzle as it is a logic problem. Say I have a process downloading a file. I rigged it to run a callback function roughly once a second, which returns the amount of data downloaded.
Now, I'm a bit puzzled on coming up with some things (at least for the sake of completeness more than just coming up with something):
1) Download speed. Now I can just return the amount of data downloaded from the callback and call it done - in truth that is the data transfer rate. But, is there something more proper like taking an average of all the times the callback fired? Or would this be most proper?
2) Estimated Time Left: Now this might be more appropriate to use an average against. What I'm doing is taking the amount I have left to download and then dividing it by the download speed. Seem proper?
The main thing I notice is that the numbers jump around wildly, so to remove any variation in sampling, would I need to be averaging the download speed samples?
(Statistics was never my thing, so yeah I'm not 100% sure about this)
It is not possible for anyone to acknowledge truth when their salary depends on them not doing it.
Now, I'm a bit puzzled on coming up with some things (at least for the sake of completeness more than just coming up with something):
1) Download speed. Now I can just return the amount of data downloaded from the callback and call it done - in truth that is the data transfer rate. But, is there something more proper like taking an average of all the times the callback fired? Or would this be most proper?
2) Estimated Time Left: Now this might be more appropriate to use an average against. What I'm doing is taking the amount I have left to download and then dividing it by the download speed. Seem proper?
The main thing I notice is that the numbers jump around wildly, so to remove any variation in sampling, would I need to be averaging the download speed samples?
(Statistics was never my thing, so yeah I'm not 100% sure about this)
It is not possible for anyone to acknowledge truth when their salary depends on them not doing it.