Revision 57fe777d71c767f386b5d1fc7fda045164b41faa authored by tysonnsa on 09 December 2020, 18:07:15 UTC, committed by GitHub on 09 December 2020, 18:07:15 UTC
1 parent f1a2e35
Raw File
LatencyAnalysisPLSR.m
% ImageryLatencyLR(varargin)

%% Latency, full population
%%
Dates = {'20180709','20180711','20180716','20180718','20180723','20180730','20180806','20180815'}; % new, for imagery
AllTrialData=Analyze.LoadConvertedData('FaceScratch',Dates)

%%
    timeWindow=[-.15:.002:.25];
%     timeWindow=[0:.002:.15];

    DF=DataFilters.FaceScr_Latency2('GoTimes',timeWindow,'kernelWidth',.002,'Effector',{'Shoulder','Cheek'},'SmoothType','BC');
DC=Analyze.FaceScratch.LatencyDecode('overwrite',1,'CondType', {'L','R'});

plsrt_=dimred.plsr_ae('SmoothParams',[.8 .002],'n_components',5,'shouldTrackResiduals',0);

LA=AU.LatencyAnalysis('dimred',plsrt_);

prefix='LatencyPop'; % classifiation .5 kernel
% prefix='corr'; % correlation

%
[FRTrue,LabelTrue,timeWindow]=DF.fit_transform(AllTrialData);
disp('done')
%
% LA.fit_DiscrimTransform('LA',FRTrue,LabelTrue,timeWindow)

%
LA.fit_transform('LA',FRTrue,timeWindow)
%
LA.PlotData()
LA.PlotPWFit()
% LA.BootStrapPWFit()
back to top