18 lines
350 B
Matlab
18 lines
350 B
Matlab
function[obj] = preprocess(obj, settings)
|
|
%% Preprocessing one trial
|
|
|
|
%% Filter the blinks
|
|
obj = obj.remove_blinks(settings);
|
|
|
|
% Smooth the data
|
|
obj = obj.smooth(settings);
|
|
|
|
% Calculate logtransformed data
|
|
obj = obj.logtransform;
|
|
|
|
% Correct for baseline
|
|
obj = obj.correct_for_baseline(settings);
|
|
|
|
% Extract statistics
|
|
obj = obj.calculate_statistics;
|