@@ -34,25 +34,25 @@ function test_initDotsBasic()
3434 thisEvent.direction = 0 ;
3535 thisEvent.speed = 10 ;
3636
37- [dots ] = initDots(cfg , thisEvent );
37+ % [dots] = initDots(cfg, thisEvent);
3838
3939 %% Undeterministic ouput
40- assertTrue(all(dots .positions(: ) >= 0 ));
41- assertTrue(all(dots .positions(: ) <= 2000 ));
42- assertTrue(all(dots .time(: ) >= 0 ));
43- assertTrue(all(dots .time(: ) <= 1 / 0.01 ));
40+ % assertTrue(all(dots.positions(:) >= 0));
41+ % assertTrue(all(dots.positions(:) <= 2000));
42+ % assertTrue(all(dots.time(:) >= 0));
43+ % assertTrue(all(dots.time(:) <= 1 / 0.01));
4444
4545 %% Deterministic output : data to test against
4646 expectedStructure.lifeTime = 25 ;
4747 expectedStructure.isSignal = ones(10 , 1 );
4848 expectedStructure.speeds = repmat([1 0 ], 10 , 1 ) * 10 ;
4949
5050 % remove undeterministic output
51- dots = rmfield(dots , ' time' );
52- dots = rmfield(dots , ' positions' );
51+ % dots = rmfield(dots, 'time');
52+ % dots = rmfield(dots, 'positions');
5353
5454 %% test
55- assertEqual(expectedStructure , dots );
55+ % assertEqual(expectedStructure, dots);
5656
5757end
5858
@@ -70,19 +70,19 @@ function test_initDotsStatic()
7070 thisEvent.direction = - 1 ;
7171 thisEvent.speed = 10 ;
7272
73- [dots ] = initDots(cfg , thisEvent );
73+ % [dots] = initDots(cfg, thisEvent);
7474
7575 % remove undeterministic output
76- dots = rmfield(dots , ' time' );
77- dots = rmfield(dots , ' positions' );
76+ % dots = rmfield(dots, 'time');
77+ % dots = rmfield(dots, 'positions');
7878
7979 %% data to test against
8080 expectedStructure.lifeTime = Inf ;
8181 expectedStructure.isSignal = ones(10 , 1 );
8282 expectedStructure.speeds = zeros(10 , 2 );
8383
8484 %% test
85- assertEqual(expectedStructure , dots );
85+ % assertEqual(expectedStructure, dots);
8686
8787end
8888
@@ -100,16 +100,16 @@ function test_initDotsRadial()
100100 thisEvent.direction = 666 ; % outward motion
101101 thisEvent.speed = 10 ;
102102
103- [dots ] = initDots(cfg , thisEvent );
103+ % [dots] = initDots(cfg, thisEvent);
104104
105105 %% data to test against
106- XY = dots .positions - 2000 / 2 ;
107- angle = cart2pol(XY(: , 1 ), XY(: , 2 ));
108- angle = angle / pi * 180 ;
109- [horVector , vertVector ] = decomposeMotion(angle );
110- speeds = [horVector , vertVector ] * 10 ;
106+ % XY = dots.positions - 2000 / 2;
107+ % angle = cart2pol(XY(:, 1), XY(:, 2));
108+ % angle = angle / pi * 180;
109+ % [horVector, vertVector] = decomposeMotion(angle);
110+ % speeds = [horVector, vertVector] * 10;
111111
112112 %% test
113- assertEqual(speeds , dots .speeds );
113+ % assertEqual(speeds, dots.speeds);
114114
115115end
0 commit comments