15h
reviewed Leave Open How can I get a list of the positions of the running minima in a list?
15h
answered How to define a function
16h
reviewed Reopen How to define a function
16h
revised How can I get a list of the positions of the running minima in a list?
added 250 characters in body
16h
comment How can I get a list of the positions of the running minima in a list?
Ah, I see now. RandomInteger results in few minimums existing. I added ist -= Accumulate . . . to create more, but now I see that this is avoiding exactly the case your method is optimized for.
16h
comment How can I get a list of the positions of the running minima in a list?
I swear yours was testing faster for me ten minutes ago but now it seems slower; I guess I changed list but I cannot remember how.
16h
revised How can I get a list of the positions of the running minima in a list?
deleted 45 characters in body
16h
comment How can I get a list of the positions of the running minima in a list?
Hm... wait, now your older f also seems slower even after a restart. Would you test my new method please?
16h
comment How can I get a list of the positions of the running minima in a list?
f3 tests slow for me. I am using: SeedRandom[1]; list = RandomInteger[9999999, 500000]; list -= Accumulate@RandomInteger[1, 500000];
16h
revised How can I get a list of the positions of the running minima in a list?
added 414 characters in body
18h
comment Iterating over a list, in a functional way
Somewhat related: (21281)
21h
revised Finding time-series direction reversal of certain magnitude
deleted 2 characters in body
21h
revised How can I get a list of the positions of the running minima in a list?
added 261 characters in body
22h
comment How can I get a list of the positions of the running minima in a list?
@kguler My self-answer to the linked question above explains how to resolve that. :-)
22h
comment How can I get a list of the positions of the running minima in a list?
Related: (1754), (38325). Somewhat related: (30438)
22h
answered How can I get a list of the positions of the running minima in a list?
22h
comment How can I get a list of the positions of the running minima in a list?
There is no need for First@ and Last@ in FoldList.
22h
comment How can I get a list of the positions of the running minima in a list?
This question feels familiar; if anyone recalls something similar please link it in these comments.
23h
awarded Announcer
1d
comment Solving linear recursions without constant depth in mathematica
Array[a, 11, 0] would be shorter than Table. +1 however.
1 2 3 4 5