Utils

simulate_response

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, only weibull 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 either linear, log10, or dB.

Returns

A simulated response for the given stimulus.

Return type

float or str