Timeline for Counting Events in a moving date range
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 6, 2014 at 15:37 | vote | accept | FredrikD | ||
Mar 17, 2014 at 11:33 | answer | added | ciao | timeline score: 1 | |
Mar 17, 2014 at 10:34 | comment | added | FredrikD | @rasher No hurry. | |
Mar 17, 2014 at 9:11 | comment | added | ciao | @FredrikD:No, completely different, taking advantage of SA properties. Don't have time to work on it right now, but there's a similar way w/o SA that performs similarly, i.e., a some hundredths of a second to generate all results for a given window size. If an answer that's not fully tailored to OP is OK, happy to post example, otherwise I can get to a precise one later. | |
Mar 17, 2014 at 7:59 | comment | added | FredrikD | @rasher I would need a more precise hint :-) If I understand your hint it would be to change the list to a SparseArray (w Absolute times) and then e.g. use the approach in Woulers answer. | |
Mar 17, 2014 at 2:23 | comment | added | ciao |
Hint: Using SparseArray properties and AbsoluteTime , you can get results for all dates with an arbitrary window size in a few hundredths of a second.
|
|
Mar 16, 2014 at 18:48 | comment | added | FredrikD | Good point! The list dvHITS is the date and the time for "High Intensity Training" events. My goal is to have 12 of these for the last 28 days, for every day. | |
Mar 16, 2014 at 18:43 | answer | added | Wouter | timeline score: 2 | |
Mar 16, 2014 at 18:02 | comment | added | C. E.♦ | You might want to define what an "event" is, it's a little bit off-putting to have to read the code to understand what you are trying to do. | |
Mar 16, 2014 at 16:55 | history | asked | FredrikD | CC BY-SA 3.0 |