Reputation
568
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
1 5 17
Newest
 Nice Answer
Impact
~4k people reached

Jan
16
awarded  Nice Answer
Dec
27
awarded  Fanatic
Dec
9
revised Finding all elements within a certain range in a sorted list
added note on performance based on comments discussion
Dec
9
suggested approved edit on Finding all elements within a certain range in a sorted list
Dec
9
comment Finding all elements within a certain range in a sorted list
@xzczd, I get the same result with window[] function. There might be hidden costs for calling C code infrequently. I updated the description to reflect this.
Dec
7
comment Finding all elements within a certain range in a sorted list
@xzczd, curious that uncompiled version runs faster than the compiled one. On what system did you test? I jut tried on Windows 7 with i7: compiled version took 0.034s, and uncompiled version took 0.218s
Dec
6
comment Finding all elements within a certain range in a sorted list
@xzczd, the typo in code has been fixed (by someone, thanks!). My testing code: list = Sort@RandomReal[1, 10000]; find = RandomReal[1, 3000]; and then First@AbsoluteTiming[bsearchMax[list, #] & /@ find]. On my Macbook pro laptop uncompiled version takes 0.312 and compiled version takes 0.069.
Dec
6
awarded  Excavator
Dec
6
revised Finding all elements within a certain range in a sorted list
added compiled version of the code for those seeking ultimate performance
Dec
6
suggested approved edit on Finding all elements within a certain range in a sorted list
Oct
28
answered Export a simple DataSet with key-value associations to CSV in Mathematica 10
Oct
18
awarded  Enthusiast
Sep
21
asked Challenge: deblurring images
Sep
20
awarded  Self-Learner
Sep
6
comment Plot style/theme for Sciences
@Hugh, for report and publication. But I also use the same plots for presentations
Sep
6
answered Plot style/theme for Sciences
Sep
6
asked Plot style/theme for Sciences
Aug
28
comment Convert DateObject into TimeObject
It seems that for the methods below to work, DateObject must contain the time. It is possible to have DateObject without the time, in which case error will be returned. A way around this is to call DateString[dateObject, {"Hour","Minute","Second", "Millisecond"}]
Aug
28
accepted Convert DateObject into TimeObject
Aug
27
asked Convert DateObject into TimeObject