def create_prf(prf_duration=25.0, dt=0.5): tAxis = np.arange(0, prf_duration + dt, dt) tPic = 5.0 tus = 16.0 prf = shrf.genBezierHRF(timeAxis=tAxis, pic=[tPic, 1], picw=2.5, ushoot=[tus, 0.0], normalize=True)[1] assert len(prf) == len(tAxis) return prf
def create_hrf(picw, pic, under=2, hrf_duration=25.0, dt=0.5): timeaxis = np.arange(0, hrf_duration, dt) Picp = [pic, 1] upos = [under, -0.2] h = shrf.genBezierHRF(timeAxis=timeaxis, pic=Picp, picw=picw, ushoot=upos) return h[1]
def create_varying_hrf(hrf_duration=25., dt=.5): timeaxis = np.arange(0,hrf_duration,dt) Picw = randrange(2,4,1) picp = [5,1] #print Picw h = shrf.genBezierHRF(timeAxis=timeaxis, pic=picp, picw=Picw) #print np.array(h)[0].shape #raw_input('') return h[1]
def create_prf(prf_duration=25., dt=.5): tAxis = np.arange(0, prf_duration + dt, dt) tPic = 5. tus = 16. prf = shrf.genBezierHRF(timeAxis=tAxis, pic=[tPic, 1], picw=2.5, ushoot=[tus, 0.], normalize=True)[1] assert len(prf) == len(tAxis) return prf
def create_hrf(picw, pic, under=2, hrf_duration=25., dt=.5): timeaxis = np.arange( 0, hrf_duration, dt, ) Picp = [pic, 1] upos = [under, -.2] h = shrf.genBezierHRF(timeAxis=timeaxis, pic=Picp, picw=picw, ushoot=upos) return h[1]
def create_hrf(picw,pic,under=2,hrf_duration=25., dt=.5): timeaxis = np.arange(0,hrf_duration,dt,) #Picw = randrange(2,4,1) #picp = [5,1] #print Picw Picp = [pic,1] upos = [under,-.2] h = shrf.genBezierHRF(timeAxis=timeaxis, pic=Picp, picw=picw,ushoot=upos) #print np.array(h)[0].shape #print hrf_duration,dt,pic,picw #raw_input('') return h[1]
def create_varying_hrf(hrf_duration=25., dt=.5): timeaxis = np.arange(0, hrf_duration, dt) Picw = randrange(2, 4, 1) picp = [5, 1] h = shrf.genBezierHRF(timeAxis=timeaxis, pic=picp, picw=Picw) return h[1]
def create_varying_hrf(hrf_duration=25.0, dt=0.5): timeaxis = np.arange(0, hrf_duration, dt) Picw = randrange(2, 4, 1) picp = [5, 1] h = shrf.genBezierHRF(timeAxis=timeaxis, pic=picp, picw=Picw) return h[1]