mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-11 16:18:11 +00:00
Merge pull request #2319 from cabejackson/2318-fix-typo-and-broken-link
2318 fix typo and broken link
This commit is contained in:
commit
f988d5bb1b
@ -164,7 +164,7 @@ var face_name_procedure = {
|
||||
### Using in a function
|
||||
|
||||
Continung the example from the previous section, what if we wanted to show the name with the face, combining the two variables together?
|
||||
To do this, we can use a [dynamic parameter](dynamic-parameters) (a function) to create an HTML-string that uses both variables in a single parameter.
|
||||
To do this, we can use a [dynamic parameter](dynamic-parameters.md) (a function) to create an HTML-string that uses both variables in a single parameter.
|
||||
The value of the `stimulus` parameter will be a function that returns an HTML string that contains both the image and the name.
|
||||
|
||||
```javascript
|
||||
@ -229,7 +229,7 @@ The `type` parameter in this object controls the type of sampling that is done.
|
||||
Valid values for `type` are
|
||||
|
||||
* `"with-replacement"`: Sample `size` items from the timeline variables with the possibility of choosing the same item multiple time.
|
||||
* `"without-replacement"`: Sample `size` itesm from timeline variables, with each item being selected a maximum of 1 time.
|
||||
* `"without-replacement"`: Sample `size` items from timeline variables, with each item being selected a maximum of 1 time.
|
||||
* `"fixed-repetitons"`: Repeat each item in the timeline variables `size` times, in a random order. Unlike using the `repetitons` parameter, this method allows for consecutive trials to use the same timeline variable set.
|
||||
* `"alternate-groups"`: Sample in an alternating order based on a declared group membership. Groups are defined by the `groups` parameter. This parameter takes an array of arrays, where each inner array is a group and the items in the inner array are the indices of the timeline variables in the `timeline_variables` array that belong to that group.
|
||||
* `"custom"`: Write a function that returns a custom order of the timeline variables.
|
||||
|
Loading…
Reference in New Issue
Block a user