Skip to main content
6 events
when toggle format what by license comment
Oct 10, 2014 at 10:52 comment added Ymareth FYI - The actual use case concerns lists of times (represented by "HH:MM:SS.sss" strings, Mathematica's TimeObjects being woefully slow as yet) where I'm looking for nearly simultaneous events. I convert these to Reals using {3600, 60, 1}.ToExpression[StringSplit[#, ":"]]&. This is a lot faster than using DateDifference.
Oct 9, 2014 at 18:43 comment added Mr.Wizard And for the example the OP gave it works just fine. Sorry for being overly critical. Sometimes I focus too much on my own assumptions about the nature of the question.
Oct 9, 2014 at 18:37 comment added Junho Lee @Mr.Wizard Just I tried with simple code.:)
Oct 9, 2014 at 18:36 comment added Junho Lee @Mr.Wizard You right. It is just show that my code is not much slow.
Oct 9, 2014 at 18:29 comment added Mr.Wizard Nice idea, but I think that the integer lists were only an example in which case this enumeration will not be robust. Even for integers the operation will slow as n grows. Consider e.g. {a, b} = List @@ RandomInteger[1*^7, {2, 1000}]; and then distanceInt[a, b, 2500]
Oct 9, 2014 at 18:16 history answered Junho Lee CC BY-SA 3.0