diff --git a/chunkie/chunkerfit.m b/chunkie/chunkerfit.m index 987ec68..c3b060d 100644 --- a/chunkie/chunkerfit.m +++ b/chunkie/chunkerfit.m @@ -36,11 +36,6 @@ % % See also CHUNKERFUNC, CHUNKERPREF, CHUNKER. -if ( nargin == 0 ) - test(); - return -end - if ( size(xy, 1) ~= 2 ) error('CHUNKIE:CHUNKERFIT:size', 'Points must be specified as a 2xN matrix.'); end @@ -120,20 +115,6 @@ end -function test() - -rng(0) -r = chnk.curves.bymode(sort(2*pi*rand(20,1)), [2 0.5 0.2 0.7]); -chnkr = chunkerfit(r); - -plot(chnkr, 'bo-') -hold on -plot(r(1,:), r(2,:), 'r.', markersize=30) -hold off -shg - -end - function y = myppval(breaks, cfs, x) [~, idx] = histc(x, [-inf; breaks(2:end-1); inf]); p = reshape((x-breaks(idx)).^(3:-1:0), [1 size(idx,1) size(cfs,3)]);