From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,de0e9aae9f2df6da,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-04-23 20:31:57 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!paloalto-snf1.gtei.net!news.gtei.net!columbine.singnet.com.sg!not-for-mail From: "juelee" Newsgroups: comp.lang.ada Subject: determine the approximate instantaneous value Date: Thu, 24 Apr 2003 11:37:00 +0800 Organization: Singapore Telecommunications Ltd Message-ID: NNTP-Posting-Host: 165.21.198.154 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Xref: archiver1.google.com comp.lang.ada:36455 Date: 2003-04-24T11:37:00+08:00 List-Id: Hi everyone, Many grateful thanks, my question is that, I am trying to write a program to determine the instantaneous speed of a runner. This would be similar to the speedometer of the car, where it will always display the instantaneous speed of the car. When we want to determine the speed, the method is to get the distance the runner ran, and divide it by the time taken. My case is that, I know the distance that the runner has run, and the start time of when he started to run. However, I do not know his end time. This makes it difficult to determine the time taken. Another information about the runner problem is that, this runner will not just run one time. He will run many times, and everytime he run, it will be of different distances and I can determine every single distance that he has run. In addition, I know each and every start time of his runs. The problem is, the end time of each and every of his runs cannot be determined. The gap between each and every of his runs will be varying too. For a period of time, a large number of his runs will be very close together. Then, there will be a long gap of time before he start to run another series of runs, which are very close to each other. I draw a diagram below to illustrate better. y-axis (meters) | | B1 B2 B3 | | | | | | | | | | | | | | | | | | | | | | | | | | | | |__|__|_|__|_______________|__|____________x-axis (time) s1 e1 s2 e2 s3 e3 I am trying to determine the instantaneous speed of the runner. It does not need to be exact because we do not have the end time. However, it must be a close approximate value. I hope you can give me some ideas or suggestions how to go about this. Many many grateful thanks in advance.