UniformDuration#

class braintools.cogtask.UniformDuration(min_val, max_val, key=None)[source]#

Uniform distribution for sampling time durations.

Examples

>>> duration = UniformDuration(200*u.ms, 400*u.ms)
>>> Delay(duration)  # Variable delay sampled uniformly
max_value()[source]#

Upper bound of the uniform range in the sampler’s time unit.

min_value()[source]#

Lower bound of the uniform range in the sampler’s time unit.