Constructor
new QuestHandler(options)
- Source:
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | the handler options Properties
|
Extends
- TrialHandler
Members
(static, readonly) Method :Symbol
- Source:
Properties:
Name | Type | Description |
---|---|---|
QUANTILE |
Symbol | Quantile threshold estimate. |
MEAN |
Symbol | Mean threshold estimate. |
MODE |
Symbol | Mode threshold estimate. |
QuestHandler method
Type:
- Symbol
intensity
- Source:
Get the current value of the variable / contrast / threshold.
This is the getter associated to getQuestValue.
Methods
(protected) _estimateQuestValue()
- Source:
Estimate the next value of the QUEST variable, based on the current value and on the selected QUEST method.
(protected) _setupJsQuest()
- Source:
Setup the JS Quest object.
addResponse()
- Source:
Add a response and update the PDF.
confInterval()
- Source:
Get an estimate of the 5%-95% confidence interval (CI).
getQuestValue() → {number}
- Source:
Get the current value of the variable / contrast / threshold.
Returns:
the current QUEST value for the variable / contrast / threshold
- Type
- number
mean() → {number}
- Source:
Get the mean of the Quest posterior PDF.
Returns:
the mean
- Type
- number
mode() → {number}
- Source:
Get the mode of the Quest posterior PDF.
Returns:
the mode
- Type
- number
quantile() → {number}
- Source:
Get the standard deviation of the Quest posterior PDF.
Returns:
the quantile
- Type
- number
sd() → {number}
- Source:
Get the standard deviation of the Quest posterior PDF.
Returns:
the standard deviation
- Type
- number
setMethod(method, log)
- Source:
Setter for the method attribute.
Parameters:
Name | Type | Description |
---|---|---|
method |
mixed | the method value, PsychoPy-style values ("mean", "median", "quantile") are converted to their respective QuestHandler.Method values |
log |
boolean | whether or not to log the change of seed |
simulate()
- Source:
Simulate a response.