Element package#

ResponseElement class#

class CFSVM.Element.ResponseElement#

A base class describing subject response.

Base for ScaleEvidence and BreakResponse.

Property Summary
keys#

Cell array of chars with PTB keys. Use:

KbName('UnifyKeyNames')
KbName('KeyNames')

to get correct keys. Read more on PTB.

response_choice#

Int index of response choice in keys.

response_kbname = ''#

PTB char array representing pressed key.

response_time#

Double time to response

SpatialElement class#

class CFSVM.Element.SpatialElement#

A base class describing elements with spatial properties.

Property Summary
color#

[R, G, B] array for Red, Green, Blue ranging from 0 to 1.

contrast#

Float array or single number from 0 to 1, where 1 is full contrast.

rect#

[x0, y0, x1, y1] array with pixel positions for the element’s rectangle.

x_center#

(Dependent) Center pixel, the lesser value is chosed when the width is even.

x_pixels#

(Dependent) Width in pixels.

y_center#

(Dependent) Center pixel, the lesser value is chosed when the height is even.

y_pixels#

(Dependent) Height in pixels.

TemporalElement class#

class CFSVM.Element.TemporalElement#

A base class describing elements with temporal properties.

Property Summary
duration#

Float duration time

offset#

Float offset time

onset#

Float onset time