import Numerosity from 'VCL-Web-Framework/scripts/experiments/numerosity/numerosity.js'
Numerosity
Constructor Summary
Public Constructor | ||
public |
constructor(params: *) Initializes a Numerosity experiment object. |
Member Summary
Public Members | ||
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
graph_type: * |
|
public |
|
|
public |
|
|
public |
subject_id: * |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
trial_responses: *[] |
|
public |
|
Method Summary
Public Methods | ||
public |
When called, will save aggregated trial data into a CSV. |
|
public |
|
|
public |
generate_trial(block_type: *): * Generates a Numerosity object for use in the JsPsych timeline. |
|
public |
handle_data_saving(trial: *, block_type: *, constants: *, index: *) Handles saving the relevant data on a given trial. |
|
public |
Orders the input data according to balancing type and initializes the Estimation object's variables. |
|
public |
set_target_color(target: *) |
Public Constructors
public constructor(params: *) source
Initializes a Numerosity experiment object.
Params:
Name | Type | Attribute | Description |
params | * | {object} Parameters passed in from routing |
Public Members
public balancing_type: * source
public condition_group: * source
public condition_name: * source
public experiment_conditions_constants: *[] source
public graph_type: * source
public raw_sub_conds: * source
public sub_condition_order: * source
public subject_id: * source
public subject_initials: * source
public trial_responses: *[] source
public trial_structure: * source
Public Methods
public export_trial_data() source
public generate_trial(block_type: *): * source
Generates a Numerosity object for use in the JsPsych timeline. Numerosity currently does not support practice trials
Each trial begins with a fixation trial block, followed by the stimulus, ended by a feedback trial block where the subject must estimate the number of target stimuli via the slider
Params:
Name | Type | Attribute | Description |
block_type | * | {string} "test" or "practice" |
Return:
* | trial {object} |
public handle_data_saving(trial: *, block_type: *, constants: *, index: *) source
Handles saving the relevant data on a given trial.
Params:
Name | Type | Attribute | Description |
trial | * | ||
block_type | * | ||
constants | * | ||
index | * |
public prepare_experiment() source
Orders the input data according to balancing type and initializes the Estimation object's variables.
public set_target_color(target: *) source
Params:
Name | Type | Attribute | Description |
target | * |