Skip to content

Commit

Permalink
add header
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffsanC committed Nov 23, 2017
1 parent e1f3c62 commit 5355871
Show file tree
Hide file tree
Showing 10 changed files with 166 additions and 0 deletions.
16 changes: 16 additions & 0 deletions recognition/activity_recognition.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
% KCC: Kernel Cross-Correlator
% Activity Recognition Using KCC
%
% Copyright (C) 2017 Wang Chen [email protected]
% Nanyang Technological University
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% You should have received a copy of the GNU General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.

function results = activity_recognition(lambda, sigma)
close all
load('data.mat');
Expand Down
17 changes: 17 additions & 0 deletions recognition/analyse_parameters.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
% KCC: Kernel Cross-Correlator
% Activity Recognition Using KCC
%
% Copyright (C) 2017 Wang Chen [email protected]
% Nanyang Technological University
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% You should have received a copy of the GNU General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.


% clc
% clear
load('performances_refine_refin.mat');
Expand Down
17 changes: 17 additions & 0 deletions recognition/data_conversion.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
% KCC: Kernel Cross-Correlator
% Activity Recognition Using KCC
%
% Copyright (C) 2017 Wang Chen [email protected]
% Nanyang Technological University
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% You should have received a copy of the GNU General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.


clear; clc
% You need to download the WARD dataset to current folder.
%
Expand Down
17 changes: 17 additions & 0 deletions recognition/find_parameter.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
% KCC: Kernel Cross-Correlator
% Activity Recognition Using KCC
%
% Copyright (C) 2017 Wang Chen [email protected]
% Nanyang Technological University
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% You should have received a copy of the GNU General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.


clc
clear
lambda = 0.0014:0.0001:0.0020;
Expand Down
17 changes: 17 additions & 0 deletions recognition/gaussian_kernel.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
% KCC: Kernel Cross-Correlator
% Activity Recognition Using KCC
%
% Copyright (C) 2017 Wang Chen [email protected]
% Nanyang Technological University
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% You should have received a copy of the GNU General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.


function kf = gaussian_kernel(xf, yf, sigma)
% Calculating the gaussian kernel vertor
% Copyright Wang Chen, Nanyang Technoglogical University
Expand Down
16 changes: 16 additions & 0 deletions recognition/kcc.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
% KCC: Kernel Cross-Correlator
% Activity Recognition Using KCC
%
% Copyright (C) 2017 Wang Chen [email protected]
% Nanyang Technological University
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% You should have received a copy of the GNU General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.

function [response, output] = kcc(test, correlator)
% Calculating the response
% Copyright Wang Chen, Nanyang Technoglogical University
Expand Down
17 changes: 17 additions & 0 deletions recognition/kcc_train.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
% KCC: Kernel Cross-Correlator
% Activity Recognition Using KCC
%
% Copyright (C) 2017 Wang Chen [email protected]
% Nanyang Technological University
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% You should have received a copy of the GNU General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.


function correlator = kcc_train(sample, lambda, sigma)
% Training the correlator based on one sample
% Copyright Wang Chen, Nanyang Technoglogical University
Expand Down
15 changes: 15 additions & 0 deletions recognition/run_me.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
% KCC: Kernel Cross-Correlator
% Activity Recognition Using KCC
%
% Copyright (C) 2017 Wang Chen [email protected]
% Nanyang Technological University
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% You should have received a copy of the GNU General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.

data_conversion; % convert database to compatible format

Expand Down
17 changes: 17 additions & 0 deletions recognition/show_example.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
% KCC: Kernel Cross-Correlator
% Activity Recognition Using KCC
%
% Copyright (C) 2017 Wang Chen [email protected]
% Nanyang Technological University
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% You should have received a copy of the GNU General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.


load('data.mat');
%% show
sequence = 100:200;
Expand Down
17 changes: 17 additions & 0 deletions recognition/show_results.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
% KCC: Kernel Cross-Correlator
% Activity Recognition Using KCC
%
% Copyright (C) 2017 Wang Chen [email protected]
% Nanyang Technological University
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% You should have received a copy of the GNU General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.


function [accuracy_kcc, accuracy_dtw] = show_results(filename)
addpath('matrix2latex')
if nargin < 1
Expand Down

0 comments on commit 5355871

Please sign in to comment.