diff options
author | Jan Huwald <jh@sotun.de> | 2012-05-07 19:53:27 (GMT) |
---|---|---|
committer | Jan Huwald <jh@sotun.de> | 2012-05-07 19:53:27 (GMT) |
commit | 00b209240138660db1ded3ef3870023964ce6e4e (patch) | |
tree | 8ffaec780b060bdc478929aa714b8af2ee760671 /code/matlab/analye-perfomance.m |
Diffstat (limited to 'code/matlab/analye-perfomance.m')
-rw-r--r-- | code/matlab/analye-perfomance.m | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/code/matlab/analye-perfomance.m b/code/matlab/analye-perfomance.m new file mode 100644 index 0000000..75b399b --- /dev/null +++ b/code/matlab/analye-perfomance.m @@ -0,0 +1,14 @@ +%% load data +perf = load('performance.out'); +perf = perf > 1.0; +s = length(perf); + +%% compute sliding avergae +ws = 250; % window size +perf_avg = zeros(s-ws,1); +for i = 1:(s-ws) + perf_avg(i,1) = mean(perf(i:(i+ws),1)); +end + +%% plot +plot(perf_avg);
\ No newline at end of file |