Estimating remainding time
-
Does someone knows where to find algorithms to estimate remainding time that will adjust the estimation if the speed varies (something like Internet Explorer would do - the estimate time would adjust with the connection speed (for eg. if it slow downs...). The simple way is to divide elapsed time by the current estimation of the progress to get the mean speed... but it does not adjust well to speed change. I think that I should uses more of the recent time information than older one... We want an algorithm that will self-adjust estimated remainding time for general use in our applications. Philippe Mori
-
Does someone knows where to find algorithms to estimate remainding time that will adjust the estimation if the speed varies (something like Internet Explorer would do - the estimate time would adjust with the connection speed (for eg. if it slow downs...). The simple way is to divide elapsed time by the current estimation of the progress to get the mean speed... but it does not adjust well to speed change. I think that I should uses more of the recent time information than older one... We want an algorithm that will self-adjust estimated remainding time for general use in our applications. Philippe Mori
-
Simple... Use "moving averages", wich are largely used in stock trading. for eg., use avg(avg(total download) + avg(last 10%))
16/03/2003 - i will have posted an article on estimations ! A class that does this ! CPrg prg; prg.SetRange(0,1000); int i=0; while(1) { prg.SetPos(i); i++; printf("%d\r\n",prg.ElapsedSeconds()); printf("%d\r\n",prg.LeftSeconds()); } it`s all you need ! for transfers ... for example ! // be cool ! I am the mighty keeper of the book on knowledge . Contact me to get your copy .