-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathmake_mit_walk_jog.m
54 lines (48 loc) · 1.65 KB
/
make_mit_walk_jog.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
% Implicit Mixture of Conditional Restricted Boltzmann Machines
% Version 1.000
%
% Code provided by Graham Taylor
%
% For more information, see:
% http://www.uoguelph.ca/~gwtaylor/publications/cvpr2010/
%
% Permission is granted for anyone to copy, use, modify, or distribute this
% program and accompanying programs and documents for any purpose, provided
% this copyright notice is retained and prominently displayed, along with
% a note saying that the original programs are available from our
% web page.
% The programs and documents are distributed without any warranty, express or
% implied. As the programs were written for research purposes only, they have
% not been tested to the degree that would be advisable in any important
% application. All use of these programs is entirely at the user's own risk.
%
% Creates a simple walk/jog dataset
% Data is originally from Eugene Hsu
% http://people.csail.mit.edu/ehsu/work/sig05stf/
% walking
% put Normal1_M.mat in data/
% or change this path
load data/Normal1_M.mat
counter = 0;
style = 1;
for ii=1:length(Motion)
counter = counter+1;
BigMotion{counter} = Motion{ii};
% Labels{counter} = zeros(size(BigMotion{counter},1),numlabels);
% Labels{counter}(:,style)=1;
Labels{counter} = repmat(style,size(BigMotion{counter},1),1);
end
% jogging
% put Jog1_M.mat in data/
% or change this path
load data/Jog1_M.mat
style = 2;
for ii=1:length(Motion)
counter = counter+1;
BigMotion{counter} = Motion{ii};
% Labels{counter} = zeros(size(BigMotion{counter},1),numlabels);
% Labels{counter}(:,style)=1;
Labels{counter} = repmat(style,size(BigMotion{counter},1),1);
end
Motion = BigMotion;
clear BigMotion;