ElementArrayStim 和包装背景的建议

ElementArrayStim and advice on wrapping a background

visual.ElementArrayStim(win, units=None, fieldPos=(0.0, 0.0), fieldSize=(3000.0, 1000.0), fieldShape='sqr', nElements=100, 大小=5.0, xys=None, rgbs=None, colors=(1.0, 1.0, 1.0), colorSpace='rgb', opacities=1.0 , depths=0, fieldDepth=0, oris=0, sfs=1.0, contrs=1, phases=0, elementTex='none', elementMask='circle' , texRes=48, interpolate=True, name=None, autoLog=None, maskParams=None)

我试图 google ElementArrayStim 的指南,但 psychopy 网站提供的指南没有详细说明可用于此的功能。请问这个命令中加粗的xys和sfs指的是什么?

此外,如何包装刺激演示 window?例如,在我的例子中,从 ElementArrayStim 派生的随机点簇分布在刺激 window 上,该簇以 (0,0) 为中心,在 x=5 处移动。最终,这些点中的每一个都将击中 window 的右边界。如何使这些点在平滑过渡中重新出现在左侧 window 边界?

以下是源代码中的注释。不确定为什么它们没有出现在在线文档中:

xys: The xy positions of the elements centres, relative to the field centre. Values should be:

  • None
  • an array/list of Nx2 coordinates.

If value is None then the xy positions will be generated automatically, based on the fieldSize and fieldPos. In this case opacity will also be overridden by this function (it is used to make elements outside the field invisible).

sfs: The spatial frequency for each element. Should either be:

  • a single value
  • an Nx1 array/list
  • an Nx2 array/list (spatial frequency of the element in X and Y).

If the units for the stimulus are 'pix' or 'norm' then the units of sf are cycles per stimulus width. For units of 'deg' or 'cm' the units are c/cm or c/deg respectively.