Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] Add possibility to ask setTargetPositionInSequence how "far away" two targets should be in a sequence #35

Open
1 task done
marcobarilari opened this issue Dec 4, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@marcobarilari
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

New feature

No response

Unclear documentation

No response

@marcobarilari
Copy link
Author

marcobarilari commented Dec 4, 2022

It should be easy since it by default check that two targets are not consecutive here

        while any(abs(targetDifference) < 2)
            chosenPositions = randsample(allowedPositions, nbTarget, REPLACE);
            chosenPositions = sort(chosenPositions);
            targetDifference = diff(chosenPositions, [], 2);
        end

and might be just a matter to not hard code the 2 here while any(abs(targetDifference) < 2) while keeping the 2 as adefaukt if any info is provided

@marcobarilari marcobarilari self-assigned this Dec 4, 2022
@marcobarilari marcobarilari added the enhancement New feature or request label Dec 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant