Utils¶
Simulate an observer with the given psychometric function parameters. |
-
questplus.utils.
simulate_response
(*, func='weibull', stimulus, params, response_domain='Correct', 'Incorrect', stim_scale='log10')¶ Simulate an observer with the given psychometric function parameters.
- Parameters
func (
str
) – The psychometric function. Currently, onlyweibull
is supported.stimulus (
dict
) – The stimulus domain.params (
dict
) – The psychometric function parameters.response_domain (
Sequence
) – The response domain.stim_scale (
str
) – The scale on which the stimulus values are provided. Can be eitherlinear
,log10
, ordB
.
- Returns
A simulated response for the given stimulus.
- Return type
float or str