Inheritance
- Core
- Tutorials
- Examples
- Snippets
Inheritance
In this tutorial we will learn how to create sets of Trials/Stimuli/Media and use them for randomization.
Sets are essentialy lists of objects that allow us to select objects out of them. The typical set definition looks something like this:
API.addMediaSet('setName',[
media1,
media2
]);
Using objects from a set is simple. all you have to do is add the inherit property to the inheriting object.
There are two syntax types for inheriting.
The simplified version randomly inherits a media object form the set 'mediaSet':
media: {inherit: 'mediaSet'}
The full syntax allows you to pick the inheritance type:
media: {
inherit: {
set: 'mediaSet',
type: 'exRandom'
}
}
// # Inheritance
// In this tutorial we will learn how to create sets of Trials/Stimuli/Media and use them for randomization.
License: Apache 2. © Project Implicit. · Current version [version]