lyman.glm.GammaHRF

class lyman.glm.GammaHRF(res=60, duration=32, pos_shape=6, pos_scale=1, neg_shape=16, neg_scale=1, ratio=0.16666666666666666)[source]

Double gamma variate model of cannonical HRF.

__init__(self, res=60, duration=32, pos_shape=6, pos_scale=1, neg_shape=16, neg_scale=1, ratio=0.16666666666666666)[source]

Initialize the object with parameters that define response shape.

Parameters
resfloat

Sampling frequency at which to generate the convolution kernel.

durationfloat

Duration of the convolution kernel.

pos_{shape, scale}floats

Parameters for scipy.stats.gamma defining the initial positive component of the response.

neg_{shape, scale}floats

Parameters for scipy.stats.gamma defining the later negative component of the response.

ratiofloat

Ratio between the amplitude of the positive component to the amplitude of the negative component.