Skip to main content
9 events
when toggle format what by license comment
Feb 13, 2012 at 14:39 vote accept 500
Feb 13, 2012 at 3:24 history edited rm -rf CC BY-SA 3.0
added info from comments.
Feb 13, 2012 at 0:51 comment added Mr.Wizard @rcollyer indeed it is, and posted before I posted mine. Nevertheless I don't believe I understood the similarity until well after. I find that I learn best from simple, pithy bits of code, and this is probably why I also post (what I hope are) that kind of answers. Take the "A and B n times" answers as an example; I answered in very simple terms, without the complication of Module, and at last check ten people found that valuable. Again I think we each bring something to the table, even though I am incapable of regularly producing the kind of answers Leonid does.
Feb 12, 2012 at 18:45 comment added rcollyer @Mr.Wizard and that form is eerily similar to my general one.
Feb 12, 2012 at 14:45 comment added Mr.Wizard Yes, exactly. There is no need to check for empty lists as the function is not applied of nothing is Reaped. You can also nest this construct to make it multidimensional.
Feb 12, 2012 at 14:40 comment added Heike @Mr.Wizard Just replacing _ with Range[1000,4000] should do it I suppose (and probably checking for an empty list when applying Mean). I agree that it's a powerful technique, so I thank you just in case you are the one who introduced it to me.
Feb 12, 2012 at 14:21 comment added Heike By using Sow and Reap this code only iterates through the list of data once. In your code, you reiterate through all elements of the data list for every value of gazNo (so 3000 times instead of only once).
Feb 12, 2012 at 14:13 comment added 500 Thank You very much. I am in shock by how fast this was. Could you explain what makes this so fast?
Feb 12, 2012 at 14:10 history answered Heike CC BY-SA 3.0