Edited some comments
This commit is contained in:
@@ -93,16 +93,18 @@ def create_peak_difference_feature(df, max_subj=40):
|
||||
|
||||
def analyze_erp(channels, precompute=True):
|
||||
"""
|
||||
Execute several statistical tests for different hypothesis, to analyze ERPs
|
||||
Execute several statistical tests for different hypothesis, to analyse ERPs
|
||||
:param channels: The channels for which the tests are executed
|
||||
:param precompute: If true, the peak-difference data will be computed. Else it will be loaded from a precomputed file,
|
||||
if it exists. This should only be set 'False' if the method was already executed once!
|
||||
"""
|
||||
if precompute:
|
||||
# Precompute the erp peaks
|
||||
precompute_erp_df('N170')
|
||||
|
||||
for c in channels:
|
||||
print("CHANNEL: " + c)
|
||||
# Load the erp peak data and create the features for the t-tests
|
||||
erp_df = pd.read_csv('cached_data/erp_peaks/erp_peaks_' + c + '.csv', index_col=0)
|
||||
feature_df = create_peak_difference_feature(erp_df)
|
||||
# 1. H_a : There is a difference between the N170 peak of recognizing faces and cars
|
||||
|
||||
Reference in New Issue
Block a user