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
The data smoothing example from  
http://octave.sourceforge.net/data-smoothing/function/regdatasmooth.html fails  
with:

rose@thinkpad:/home/rose(2)$ octave
GNU Octave, version 3.4.0
Copyright (C) 2011 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.

Octave was configured for "i686-pc-linux-gnu".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html

Read http://www.octave.org/bugs.html to learn how to submit bug reports.

For information about changes from previous versions, type `news'.

warning: function  
/usr/libexec/octave/packages/miscellaneous-1.0.9/i686-pc-linux-gnu-api-v47+/hex2num.oct shadows a core library  
function
warning: function /usr/share/octave/packages/optim-1.0.12/fminbnd.m  
shadows a core library function
warning: LOADPATH is now a function instead of a built-in variable.   
By assigning to LOADPATH, you have created a variable that hides the  
function LOADPATH.  To remove the variable and restore the function,  
type "clear LOADPATH"
octave:1> npts = 100;
octave:2> x = linspace(0,2*pi,npts)';
octave:3> x = x + 2*pi/npts*(rand(npts,1)-0.5);
octave:4> y = sin(x);
octave:5> y = y + 1e-1*randn(npts,1);
octave:6> yp = ddmat(x,1)*y;
octave:7> y2p = ddmat(x,2)*y;
octave:8> [yh, lambda] = regdatasmooth (x, y,  
"d",4,"stdev",1e-1,"midpointrule");
error: Invalid call to fminunc.  Correct usage is:

  -- Function File:  fminunc (FCN, X0)
  -- Function File:  fminunc (FCN, X0, OPTIONS)
  -- Function File: [X, FVEC, INFO, OUTPUT, GRAD, HESS] = fminunc (FCN,
           ...)

error: called from:
error:   /usr/share/octave/3.4.0/m/help/print_usage.m at line 87, column 5
error:   /usr/share/octave/3.4.0/m/optimization/fminunc.m at line 95, column 5
error:    
/usr/share/octave/packages/data-smoothing-1.2.0/regdatasmooth.m at  
line 117, column 17