Reputation
1,063
Next privilege 2,000 Rep.
Edit questions and answers
Badges
6 25
Impact
~27k people reached

Apr
1
awarded  Popular Question
Mar
23
awarded  Yearling
Mar
15
awarded  Popular Question
Mar
14
accepted Fit image of mountain to gaussian
Mar
14
comment Fit image of mountain to gaussian
Yes this is Chimborazo. I grew up in Ecuador and climbed it when I was 16 :)
Mar
14
awarded  Inquisitive
Mar
14
awarded  Nice Question
Mar
13
asked Fit image of mountain to gaussian
Feb
14
awarded  Popular Question
Dec
17
accepted Assemble rule replacement from pairs of positions
Dec
16
comment Assemble rule replacement from pairs of positions
@kuba no concern about answer. I am waiting to accept in case I get an answer that builds the sparse array directly so I can compare timings
Dec
16
revised Assemble rule replacement from pairs of positions
added 6 characters in body
Dec
16
comment Assemble rule replacement from pairs of positions
@kuba The sparse Array is representing a signal I am processing. The positions places where the signal is "on" get 1's in the sparse array and the positions where the signal is "off" get zeros. The positions i'm inputting into this function are the range of positions that the signal is "on". So the coordinates { {5,10}, {12,12} } indicates that the signal was off from frame 1-4. On from 5-10. Off at 11. and On at 12. The length of the sparse array should be the length of signal I am processing. In this example all my signals have length of 300.
Dec
15
asked Assemble rule replacement from pairs of positions
Dec
15
revised Problem with Conditionals: Why does mathematica add an extra empty list to my output
added 206 characters in body
Dec
15
accepted Problem with Conditionals: Why does mathematica add an extra empty list to my output
Dec
14
comment Problem with Conditionals: Why does mathematica add an extra empty list to my output
This returns an empty list, when it should return {11,22}, because the sum from list[[12;;19]] is >1. I think this happens because of the non-sequential positions in the list
Dec
14
comment Problem with Conditionals: Why does mathematica add an extra empty list to my output
pos = {{11,22}, {270, 270}, {291, 291}}
Dec
14
comment Problem with Conditionals: Why does mathematica add an extra empty list to my output
list = SparseArray[# -> 1 & /@ {12, 13, 14, 15, 16, 17, 18, 19}, 302]
Dec
14
comment Problem with Conditionals: Why does mathematica add an extra empty list to my output
@eldo I noticed the tstFunc here has a bug in a special case, where pos has an element that looks like {2,2}', indicating that we should only look at position 2` in high array, and evaluate that there is a '1' in that position. i'm not sure how to fix it.