Gentoo Archives: gentoo-science

From: rose@××××××××××××××.de
To: gentoo-science@l.g.o
Subject: [gentoo-science] octave data-smoothing example failes
Date: Sun, 09 Oct 2011 19:34:23
Message-Id: 20111009213356.bc2nihup8gwccw88@webmail.uni-potsdam.de
1 The data smoothing example from
2 http://octave.sourceforge.net/data-smoothing/function/regdatasmooth.html fails
3 with:
4
5 rose@thinkpad:/home/rose(2)$ octave
6 GNU Octave, version 3.4.0
7 Copyright (C) 2011 John W. Eaton and others.
8 This is free software; see the source code for copying conditions.
9 There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
10 FITNESS FOR A PARTICULAR PURPOSE. For details, type `warranty'.
11
12 Octave was configured for "i686-pc-linux-gnu".
13
14 Additional information about Octave is available at http://www.octave.org.
15
16 Please contribute if you find this software useful.
17 For more information, visit http://www.octave.org/help-wanted.html
18
19 Read http://www.octave.org/bugs.html to learn how to submit bug reports.
20
21 For information about changes from previous versions, type `news'.
22
23 warning: function
24 /usr/libexec/octave/packages/miscellaneous-1.0.9/i686-pc-linux-gnu-api-v47+/hex2num.oct shadows a core library
25 function
26 warning: function /usr/share/octave/packages/optim-1.0.12/fminbnd.m
27 shadows a core library function
28 warning: LOADPATH is now a function instead of a built-in variable.
29 By assigning to LOADPATH, you have created a variable that hides the
30 function LOADPATH. To remove the variable and restore the function,
31 type "clear LOADPATH"
32 octave:1> npts = 100;
33 octave:2> x = linspace(0,2*pi,npts)';
34 octave:3> x = x + 2*pi/npts*(rand(npts,1)-0.5);
35 octave:4> y = sin(x);
36 octave:5> y = y + 1e-1*randn(npts,1);
37 octave:6> yp = ddmat(x,1)*y;
38 octave:7> y2p = ddmat(x,2)*y;
39 octave:8> [yh, lambda] = regdatasmooth (x, y,
40 "d",4,"stdev",1e-1,"midpointrule");
41 error: Invalid call to fminunc. Correct usage is:
42
43 -- Function File: fminunc (FCN, X0)
44 -- Function File: fminunc (FCN, X0, OPTIONS)
45 -- Function File: [X, FVEC, INFO, OUTPUT, GRAD, HESS] = fminunc (FCN,
46 ...)
47
48 error: called from:
49 error: /usr/share/octave/3.4.0/m/help/print_usage.m at line 87, column 5
50 error: /usr/share/octave/3.4.0/m/optimization/fminunc.m at line 95, column 5
51 error:
52 /usr/share/octave/packages/data-smoothing-1.2.0/regdatasmooth.m at
53 line 117, column 17