コード例 #1
0
ファイル: cmp_xcorrs_unc.py プロジェクト: AraiKensuke/AIiRPS
slideby_sec = slideby/300
lags = int(lags_sec / slideby_sec)+1  #  (slideby/300)*lags
xticksD = [-20, -10, 0, 10, 20]
time_lags = _N.linspace(-(slideby/300)*lags, lags*(slideby/300), 2*lags+1)
xticksD = [-20, -10, 0, 10, 20]

iexpt = -1

#time_lags = _N.linspace(-(slideby/300)*lags, lags*(slideby/300), 2*lags+1)

gk = gauKer(2)

pf_x = _N.arange(-15, 16)
all_x= _N.arange(-141, 142)

ch_w_CM, rm_chs, list_ch_names, ch_types = datconf.getConfig(datconf._RPS)
arr_ch_names = _N.array(list_ch_names)

for key in key_dats:
    iexpt += 1
    f12 = frg.split("-")
    f1 = f12[0]
    f2 = f12[1]
    allWFs   = []

    vs = "%(a)d%(g)d" % {"a" : armv_ver, "g" : gcoh_ver}
    #if key == "Jan092020_15_05_39":
         
    pikdir     = getResultFN("%(dir)s/v%(vs)s" % {"dir" : key, "vs" : vs})

    lmXCr = depickle(getResultFN("%(k)s/v%(vs)s/xcorr_out_0_%(w)d_%(sb)d_%(f1)s_%(f2)s_v%(vs)s.dmp" % {"k" : key, "vs" : vs, "f1" : f1, "f2" : f2, "w" : win, "sb" : slideby}))
コード例 #2
0
ファイル: clusters_eeg_gcoh.py プロジェクト: AraiKensuke/GCoh
    AC[maxlag] = 1
    return AC


dataset = datconf._STROOP
c = 2
if dataset == datconf._SIM:
    Fs = 200
if dataset == datconf._RPS or dataset == datconf._STROOP:
    Fs = 300
elif dataset == datconf._GONOGO:
    Fs = 500
elif dataset == datconf._AAFFECT:
    Fs = 500

ch_w_CM, rm_chs, list_ch_names, ch_types = datconf.getConfig(dataset,
                                                             sim_nchs=10)
arr_ch_names = _N.array(list_ch_names)

# arr_ch_names=_N.array(["P3", "C3", "F3", "Fz", "F4",
#                        "C4", "P4", "Cz", "Pz", "A1",    #  "Pz" is "CM"
#                        "Fp1","Fp2","T3", "T5", "O1",
#                        "O2", "F7", "F8", "A2", "T6",
#                        "T4"])

ev_n = 0

_WIDE = 0
_MED = 1
_FINE = 2
_FINE1 = 3  #