Mercurial > hg > ltpda
comparison src/ltpda_smoother/test_mnfest.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 clear; | |
2 | |
3 | |
4 %% Create test data | |
5 bw = 20; | |
6 ol = 0.8; | |
7 | |
8 xx = rand(1,1000).^2; | |
9 xx(500) = 10; | |
10 | |
11 | |
12 % Make AO | |
13 a = ao(1:length(xx),xx); | |
14 s = smoother(a) | |
15 | |
16 nxx = ltpda_smoother(xx, bw, ol, 'median'); | |
17 b = ao(1:length(xx), nxx); | |
18 | |
19 iplot(s,b) | |
20 | |
21 iplot(s./b) |