I have historical data for horse races. I'm trying to figure out an algorithm of how to:
for any given date/event:
* take top N horses in the descending order (winner will go 1st, then - horse on the 2nd place, etc...)
* attach odds to each one
* data should be as close to "start" time as possible; that is, the most recent will have presedence over the old one, and overwrite them
But what prevents me is understanding how to combine all those files for an event: "$event_id" and "1.$market_id", in a directory of an event.
And what data should I actually take, except "runners'? Whilst having in mind that there're market changes too.
So how to do it, what would be a simple algorithm? I don't need perfect solution, rather one which will just do.
P.S.
I'm a developer - able to program
for any given date/event:
* take top N horses in the descending order (winner will go 1st, then - horse on the 2nd place, etc...)
* attach odds to each one
* data should be as close to "start" time as possible; that is, the most recent will have presedence over the old one, and overwrite them
But what prevents me is understanding how to combine all those files for an event: "$event_id" and "1.$market_id", in a directory of an event.
And what data should I actually take, except "runners'? Whilst having in mind that there're market changes too.
So how to do it, what would be a simple algorithm? I don't need perfect solution, rather one which will just do.
P.S.
I'm a developer - able to program
Comment