Constructor
new StairHandler(options)
- Source:
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | the handler options Properties
|
Extends
- TrialHandler
Members
(static, readonly) Direction :Symbol
- Source:
Properties:
Name | Type | Description |
---|---|---|
START |
Symbol | |
UP |
Symbol | |
DOWN |
Symbol |
StairHandler step direction.
Type:
- Symbol
(static, readonly) StepType :Symbol
- Source:
Properties:
Name | Type | Description |
---|---|---|
DB |
Symbol | |
LINEAR |
Symbol | |
LOG |
Symbol |
StairHandler step type
Type:
- Symbol
intensity
- Source:
Get the current value of the variable / contrast / threshold.
This is the getter associated to getStairValue.
Methods
(protected) _decreaseValue()
- Source:
Decrease the current value of the variable / contrast / threshold.
(protected) _estimateStairValue()
- Source:
Estimate the next value, based on the current value, the counter of correct responses, and the current staircase direction.
(protected) _increaseValue()
- Source:
Increase the current value of the variable / contrast / threshold.
(protected) _updateTrialList()
- Source:
Update the next undefined trial in the trial list, and the associated snapshot.
addResponse()
- Source:
Add a response and advance the staircase.
getStairValue() → {number}
- Source:
Get the current value of the variable / contrast / threshold.
Returns:
the current value
- Type
- number