On 19.10.2017 15:40, Sven Schreiber wrote:
Am 19.10.2017 um 15:35 schrieb Artur T.:
> Am 19.10.2017 um 14:50 schrieb Artur T.:
>> Are you sure you don't simply need the built-in resample() function?
>> Have you tried Y[SEL] (square brackets, as with all indexation in
>> hansl)?
>>
>> cheers,
>> sven
>
> Oh my god, this was so trivial. Thank you, Sven! I totally forgot
> about this solution... :-/ In the example below the gain in speed is
> enormous (26x faster)
OK, still it looks as if you just want to resample(). It would also be
interesting how fast that is in comparison.
I am programming a stationary bootstrap where the block length varies
randomly. This is why I avoid resample(). As resample() is written in C
(I assume) it should be faster, I guess...
Artur