1 function [pr,pv,mpv,np] = path_ros(ps)
10 % d = ps.raw_dist(p(j),p(j-1));
11 % t = 24*3600*(ps.points(j,3)-ps.points(j-1,3));
14 pp = [pp;p(j-1) p(j)];
18 pp = unique(pp,'rows');
22 d = ps.raw_dist(pp(i,1),pp(i,2));
23 t = (ps.points(pp(i,2),3)-ps.points(pp(i,1),3));
33 tstr = sprintf('ROS along paths \n Mean: %f STD: %f',pm,ps);
39 nan_var = sum(msk(:));
42 fprintf('Mean of std deviations on paths: %f \n',mpv)
43 fprintf('Percentage of path without variance: %f \n',np*100);
44 figure,histogram(pv(~msk));
45 title('Std deviation of ROS on paths')