Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pseudorandomization multiple attributes
#1
Is it possible to limit the maximum number of consecutive stimuli conditions?
For example, is there a way to limit the occurrence of both attributes "aaaa" and "bbbb" showing up?
I tried both of these codes but none of them worked Sad 
"stimulus_pattern": {"order": "pseudorandom",
                            "attribute": "a", "b",
                            "min_N": 1, "max_N": 3}


"stimulus_pattern": {"order": "pseudorandom",
                            "attribute": "a",
                            "attribute": "b",
                            "min_N": 1, "max_N": 3}
Reply
#2
There are a couple of things you can try.

First of all, make sure you've defined the attributes within the corresponding stimuli. That is, some of the stimuli should have something like:

Code:
{
  "type": "image",
  "content": "my_image1.png",
  "my_attribute": "a"
}
While another group of stimuli like:
Code:
{
  "type": "image",
  "content": "my_image1.png",
  "my_attribute": "b"
}

Then, in the stimulus pattern, you can do:
Code:
"stimulus_pattern": {"order": "pseudorandom",
                            "attribute": "my_attribute",
                            "min_N": 1, "max_N": 3}
Note you only need to specify the name of the attribute, not the values.

Go ahead and give it a try first though?
Reply
#3
Works perfectly!
Thank you so much for your helpSmile
Reply
#4
Yay! Happy to hear that!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)