-
Notifications
You must be signed in to change notification settings - Fork 0
/
FishLocalMain.m
26 lines (23 loc) · 1.11 KB
/
FishLocalMain.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
%clear
inputpath='Fish';
inputPrefix='TrajectoryXY';
alpha=0.001;
% [ nDataSet,nClass ] = getFishInputDataset(inputpath,inputPrefix);
%
% [ DataRes,ErrorDist ] = getDirectionPrediction(nDataSet,nClass);
%=== plot
C = [ErrorDist.globalErrLocalDist',ErrorDist.globalErrInformedDist'];
grp = [zeros(1,length(ErrorDist.globalErrLocalDist)),ones(1,length(ErrorDist.globalErrInformedDist))];
localstr=sprintf('Local Model: Median = %.2f',median(ErrorDist.globalErrLocalDist));
informedstr=sprintf('Informed Model: Median = %.2f',median(ErrorDist.globalErrInformedDist));
boxplot(C,grp,'labels',{localstr,informedstr});
str=sprintf('Fish Stratety prediction');
title(str)
xlabel('Model')
ylabel('Degree Error')
ylim([0 180])
% [ ~,localHNPmat ] = HtestFunc( ErrorDist.globalErrLocalDist,alpha );
% [ ~,informedHNPmat ] = HtestFunc( ErrorDist.globalErrInformedDist,alpha );
%Ci(:,1) ==mean Ci(:,2) == std, Ci(1,:) lower bound, Ci(2,:) upperbound
% localCi=paramci(fitdist(ErrorDist.globalErrLocalDist','Normal'),'Alpha',alpha);
% informedCi=paramci(fitdist(ErrorDist.globalErrInformedDist','Normal'),'Alpha',alpha);