The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
dynamical list problem
01-02-2019, 04:36 PM (This post was last modified: 01-02-2019 07:22 PM by peacecalc.)
Post: #1
dynamical list problem
Hello folks,

I have a problem for you, but no solution. We have a growing list, in every cycle a new element is appended to the list. Let us say, every second a new value is generated and which series of elements have the highest average. The sum of values of such a sequence should obey a certain value:

Here a example: sum value is 5

1 {1}
2 {1 2}
3 {1 2 1}
4 {1 2 1 3} Now the first time for building an averge value: m = (4 + 1)/(3 + 1/3) = 3/2
5 {1 2 1 3 2} m = (3+2)/(1+1) = 5/2. Statically it would be not calculated because the sum value is not 5 (only 2+2). I hope this explain a little bit the problem. A more difficult situation occurs when the not only one but more values in the "past" must be included in the new average caluation.

From where I get this dynamical problem? My fitness watch told me after a jogging tour that was my fastest mile. I've the impression, the watch works statically. It takes the time after the first miles, then after the second mile and so on. And at the end, it tells me, ok your fith mile was my record (= fastest) mile. But what is, when my record milstones lies in between?

Greetings
peacecalc
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
dynamical list problem - peacecalc - 01-02-2019 04:36 PM
RE: dynamical list problem - grsbanks - 01-02-2019, 06:08 PM
RE: dynamical list problem - BruceH - 01-02-2019, 06:47 PM
RE: dynamical list problem - peacecalc - 01-02-2019, 07:14 PM
RE: dynamical list problem - pier4r - 01-03-2019, 11:56 AM
RE: dynamical list problem - Albert Chan - 01-03-2019, 12:57 PM
RE: dynamical list problem - peacecalc - 01-03-2019, 02:11 PM
RE: dynamical list problem - Albert Chan - 01-03-2019, 03:13 PM
RE: dynamical list problem - peacecalc - 01-03-2019, 04:25 PM
RE: dynamical list problem - Thomas Klemm - 01-03-2019, 04:44 PM
RE: dynamical list problem - Albert Chan - 01-03-2019, 05:18 PM
RE: dynamical list problem - Thomas Klemm - 01-03-2019, 09:15 PM
RE: dynamical list problem - peacecalc - 01-04-2019, 08:51 AM
RE: dynamical list problem - BruceH - 01-04-2019, 01:21 PM
RE: dynamical list problem - Albert Chan - 01-04-2019, 02:34 PM
RE: dynamical list problem - Thomas Klemm - 01-04-2019, 11:57 AM
RE: dynamical list problem - peacecalc - 01-05-2019, 09:48 AM
RE: dynamical list problem - Thomas Klemm - 01-05-2019, 12:54 PM
RE: dynamical list problem - DavidM - 01-05-2019, 05:13 PM
RE: dynamical list problem - Thomas Klemm - 01-05-2019, 07:45 PM
RE: dynamical list problem - John Keith - 01-07-2019, 04:55 PM
RE: dynamical list problem - Thomas Klemm - 01-07-2019, 08:29 PM



User(s) browsing this thread: 2 Guest(s)