38 reputation
3
bio website
location
age
visits member for 1 year, 11 months
seen Nov 24 '13 at 20:47

Aug
1
awarded  Scholar
Aug
1
accepted Speed up Mathematica code involving Convolve
Jul
30
awarded  Supporter
Jul
30
comment Speed up Mathematica code involving Convolve
@SimonWoods, thank you for your input on my code, I appreciate it a lot! These suggestions are exactly what I was hoping for (I'm especially excited about the elegant corr[y]/corr[0] construction. :)).
Jul
30
comment Speed up Mathematica code involving Convolve
Silvia, this is indeed way faster than my initial method, thanks a lot! May I ask you a further question about your construction of corrArray? While this line is very compact, I'm not sure I entirely understand it. So at first you apply the list xiTmpDiscrete to ListCorrelate and than the resulting expression is applied to #1/#1[[Lx]]. I've tried to cast this into code I'm more familiar with (at least right now) and came up with ListCorrelate[xiTmpDiscrete, xiTmpDiscrete, {-1, 1}, 0]/ ListCorrelate[xiTmpDiscrete, xiTmpDiscrete, {-1, 1}, 0][[Lx]], which however results in an error.
Jul
29
awarded  Student
Jul
29
comment Speed up Mathematica code involving Convolve
@VitaliyKaurov Thank you. I actually tried to scale down the code but apparently did a very bad job at it. The Table functions stem from my original calculations where I wanted to average over >100 realizations. These calculations didn't finish in a reasonable amount of time, so I set them to 1 for optimization.
Jul
29
comment Speed up Mathematica code involving Convolve
Could you elaborate? This Convolve[f,f,x,y]/Convolve[f,f,x,0] construct ensures that corr[y=0] is equal to unity and this is an essential requirement in my analysis.
Jul
29
asked Speed up Mathematica code involving Convolve