up Inquisit Language Reference

latencyDistribution attribute

The latencydistribution attribute controls the response latencies of Inquisit's test monkey.

Member of

<monkey>

Syntax

/ latencyDistribution = distribution(...)

or

/ latencyDistribution = constant(mean)

or

/ latencyDistribution = normal(mean, sd)

or

/ latencyDistribution = uniform(min, max)

Parameters

Name Type Description
distribution latencydistributionenum
ValueDescription
constantA single response time.
normalSelect response times from a Gaussian distribution.
uniformSelect response times from a uniform distribution.
mean number The expected average in milliseconds of the monkey's response latencies.
sd number The expected standard deviation in milliseconds of the monkey's response latencies.
min number The minimum possible latency in milliseconds for the monkey's response.
max number The maximum possible latency in milliseconds for the monkey's response.

Remarks

By default, the monkey uses a normal distribution, the mean and standard deviation of which vary depending upon whether a response deadline or window is used.

Examples

The following specifies that the monkey's latencies are randomly selected from a normal distibution, with a mean of 200 milliseconds and standard deviation of 10. Each response is 95% likely to be correct.

<monkey>
/ latencydistribution = normal(200, 10)
/ percentCorrect = 95
</monkey>

The following specifies that the monkey's latencies are randomly selected from a uniform distribution ranging from 0 to 1000 milliseconds. Each response is 50% likely to be correct.

<monkey>
/ latencydistribution = uniform(0, 1000)
/ percentCorrect = 50
</monkey>

Copyright Millisecond Software, LLC. All rights reserved.