25.06
This commit is contained in:
parent
539cc9ed09
commit
09b17a04eb
17
scratch.py
Normal file
17
scratch.py
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
|
||||||
|
#second_try scratch
|
||||||
|
minimum = min(len(frequency[0]), len(frequency[1]))
|
||||||
|
f1 = frequency[0][:minimum]
|
||||||
|
f2 = frequency[1][:minimum]
|
||||||
|
|
||||||
|
frequency = np.array(frequency)
|
||||||
|
|
||||||
|
mean = np.mean(frequency, axis=0)
|
||||||
|
|
||||||
|
for i in range(len(minimum)):
|
||||||
|
mean(frequency[0][i], frequency[1][i])
|
||||||
|
|
||||||
|
for f in frequency:
|
||||||
|
print(np.mean(f))
|
||||||
|
|
||||||
|
# mean_f = np.mean(x) for x in zip(freqeuncies1, frequencies2)
|
@ -10,36 +10,24 @@ from jar_functions import parse_dataset
|
|||||||
datasets = [(os.path.join('D:\\jar_project\\JAR\\2020-06-22-ab\\beats-eod.dat'))]
|
datasets = [(os.path.join('D:\\jar_project\\JAR\\2020-06-22-ab\\beats-eod.dat'))]
|
||||||
# (os.path.join('D:\\jar_project\\JAR\\2020-06-22-ac\\beats-eod.dat'))]
|
# (os.path.join('D:\\jar_project\\JAR\\2020-06-22-ac\\beats-eod.dat'))]
|
||||||
|
|
||||||
|
eodf = []
|
||||||
|
deltaf = []
|
||||||
|
stimulusf = []
|
||||||
|
|
||||||
time = []
|
time = []
|
||||||
frequency = []
|
frequency = []
|
||||||
amplitude = []
|
amplitude = []
|
||||||
|
|
||||||
|
|
||||||
for dataset in datasets:
|
for dataset in datasets:
|
||||||
t, f, a, e= parse_dataset(dataset)
|
t, f, a, e, d, s= parse_dataset(dataset)
|
||||||
embed()
|
|
||||||
time.append(t)
|
time.append(t)
|
||||||
frequency.append(f)
|
frequency.append(f)
|
||||||
amplitude.append(a)
|
amplitude.append(a)
|
||||||
|
eodf.append(e)
|
||||||
|
deltaf.append(d)
|
||||||
minimum = min(len(frequency[0]), len(frequency[1]))
|
stimulusf.append(s)
|
||||||
f1 = frequency[0][:minimum]
|
|
||||||
f2 = frequency[1][:minimum]
|
|
||||||
|
|
||||||
frequency = f1 + f2
|
|
||||||
embed()
|
|
||||||
#frequency = np.array(frequency)
|
|
||||||
|
|
||||||
mean = np.mean(frequency, axis=0)
|
|
||||||
|
|
||||||
for i in range(len(minimum)):
|
|
||||||
mean(frequency[0][i], frequency[1][i])
|
|
||||||
|
|
||||||
for f in frequency:
|
|
||||||
print(np.mean(f))
|
|
||||||
|
|
||||||
# mean_f = np.mean(x) for x in zip(freqeuncies1, frequencies2)
|
|
||||||
|
|
||||||
|
|
||||||
embed()
|
embed()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user