ah, rats. it looks like matlab introduced a 'sample' function. we should
have chosen a less obvious name.
> 2- Wouldn't be better to remove chunks of surplus (adjacent timepoints
> resulted from one stimulus) instead of randomly selecting what idx to
> remove. This is due to the HRF, a timepoint in the middle doesn’t have
> the same weight (and effect) as another at the end of the stimulus
> presentation. Then we have few timepoints here and there to randomly
> remove.
yes! that would be better, but i don't think that's an easy function to
write.
if you felt like having a go, i'd love to include it in the toolbox.
because it's hard though, i think we'd want to have a unit test too.
you could use the unit test for create_balanced_xvalid_selectors.m as a
template, but it's not as comprehensive as it should be (e.g. it doesn't
test when you include actives selectors)
trunk/mvpa/tests/unit_create_balanced_xvalid_selectors.m.
g