![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Let's say I have a traffic monitoring system. The stream of data coming in records a timestamp and a speed for each vehicle. I'd like to know what all the groups of vehicles larger than X whose with average speed over Y is. Any ideas how to approach this? |
#3
| |||
| |||
|
|
Hello, Let's say I have a traffic monitoring system. *The stream of data coming in records a timestamp and a speed for each vehicle. I'd like to know what all the groups of vehicles larger than X whose with average speed over Y is. Any ideas how to approach this? I can't help it ....I can't help it ....I can't help it ....I can't |
#4
| |||
| |||
|
|
On Mon, 22 Mar 2010 15:42:09 -0500, david (AT) fetter (DOT) org (David Fetter) wrote: Let's say I have a traffic monitoring system. The stream of data coming in records a timestamp and a speed for each vehicle. I'd like to know what all the groups of vehicles larger than X whose with average speed over Y is. Any ideas how to approach this? First, define your terms. What is a group? What does "larger than X" mean? (Size of vehicle? Number of vehicles in the group?) |
#5
| |||
| |||
|
|
Gene Wirchenko <genew (AT) ocis (DOT) net> wrote: On Mon, 22 Mar 2010 15:42:09 -0500, david (AT) fetter (DOT) org (David Fetter) wrote: Let's say I have a traffic monitoring system. The stream of data coming in records a timestamp and a speed for each vehicle. I'd like to know what all the groups of vehicles larger than X whose with average speed over Y is. Any ideas how to approach this? First, define your terms. What is a group? What does "larger than X" mean? (Size of vehicle? Number of vehicles in the group?) Number of vehicles in the group. |
#6
| |||
| |||
|
|
On Mon, 22 Mar 2010 16:12:50 -0500, david (AT) fetter (DOT) org (David Fetter) wrote: Gene Wirchenko <genew (AT) ocis (DOT) net> wrote: On Mon, 22 Mar 2010 15:42:09 -0500, david (AT) fetter (DOT) org (David Fetter) wrote: Let's say I have a traffic monitoring system. The stream of data coming in records a timestamp and a speed for each vehicle. I'd like to know what all the groups of vehicles larger than X whose with average speed over Y is. Any ideas how to approach this? First, define your terms. What is a group? What does "larger than X" mean? (Size of vehicle? Number of vehicles in the group?) Number of vehicles in the group. And what is a group? |
#7
| |||
| |||
|
|
Gene Wirchenko<genew (AT) ocis (DOT) net> wrote: On Mon, 22 Mar 2010 16:12:50 -0500, david (AT) fetter (DOT) org (David Fetter) wrote: Gene Wirchenko<genew (AT) ocis (DOT) net> wrote: On Mon, 22 Mar 2010 15:42:09 -0500, david (AT) fetter (DOT) org (David Fetter) wrote: Let's say I have a traffic monitoring system. The stream of data coming in records a timestamp and a speed for each vehicle. I'd like to know what all the groups of vehicles larger than X whose with average speed over Y is. Any ideas how to approach this? First, define your terms. What is a group? What does "larger than X" mean? (Size of vehicle? Number of vehicles in the group?) Number of vehicles in the group. And what is a group? Those vehicles, grouped in time, whose average speed is>= Y. How are you grouping them in time? |
#8
| |||
| |||
|
|
Gene Wirchenko <ge... (AT) ocis (DOT) net> wrote: On Mon, 22 Mar 2010 16:12:50 -0500, da... (AT) fetter (DOT) org (David Fetter) wrote: Gene Wirchenko <ge... (AT) ocis (DOT) net> wrote: On Mon, 22 Mar 2010 15:42:09 -0500, da... (AT) fetter (DOT) org (David Fetter) wrote: Let's say I have a traffic monitoring system. *The stream of data coming in records a timestamp and a speed for each vehicle. I'd like to know what all the groups of vehicles larger than X whose with average speed over Y is. Any ideas how to approach this? * * First, define your terms. *What is a group? *What does "larger than X" mean? *(Size of vehicle? *Number of vehicles in the group?) Number of vehicles in the group. * * And what is a group? Those vehicles, grouped in time, whose average speed is >= Y. Let's say we're looking for groups of 20 or more vehicles whose average speed is >= 175 kph. The first 20 vehicles pass by at 200 kph, then another 20 pass at 100, each at distinct times. When vehicle 6 of the slower bunch passes, the average speed of cars up until now is (20*200+6*100)/26 or ~176.92 kph. *Vehicle 7 passes, and the average is now ~174.07, which is under 175, so the first group has 26 vehicles in it, and we're now looking to start the next group. Cheers, David. -- David Fetter <da... (AT) fetter (DOT) org>http://fetter.org/ Phone: +1 415 235 3778 *AIM: dfetter666 *Yahoo!: dfetter Skype: davidfetter * * *XMPP: david.fet... (AT) gmail (DOT) com To the extent that we overreact, we proffer the terrorists the greatest tribute. * * * * * * * * * * * * * * * * High Court Judge Michael Kirby |
#9
| |||
| |||
|
|
On 22 mar, 21:42, da... (AT) fetter (DOT) org (David Fetter) wrote:> Hello, Let's say I have a traffic monitoring system. *The stream of data coming in records a timestamp and a speed for each vehicle. I'd like to know what all the groups of vehicles larger than X whose with average speed over Y is. Any ideas how to approach this? I can't help it ....I can't help it ....I can't help it ....I can't help it .... If this a traffic monitoring system, you may want to approach it from the I35 taking the I45 West... |

#10
| |||
| |||
|
|
Let's say we're looking for groups of 20 or more vehicles whose average speed is >= 175 kph. The first 20 vehicles pass by at 200 kph, then another 20 pass at 100, each at distinct times. When vehicle 6 of the slower bunch passes, the average speed of cars up until now is (20*200+6*100)/26 or ~176.92 kph. Vehicle 7 passes, and the average is now ~174.07, which is under 175, so the first group has 26 vehicles in it, and we're now looking to start the next group. |
![]() |
| Thread Tools | |
| Display Modes | |
| |