public inbox for gentoo-science@lists.gentoo.org
 help / color / mirror / Atom feed
From: rose@rz.uni-potsdam.de
To: gentoo-science@lists.gentoo.org
Subject: [gentoo-science] octave data-smoothing example failes
Date: Sun, 09 Oct 2011 21:33:56 +0200	[thread overview]
Message-ID: <20111009213356.bc2nihup8gwccw88@webmail.uni-potsdam.de> (raw)

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





                 reply	other threads:[~2011-10-09 19:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111009213356.bc2nihup8gwccw88@webmail.uni-potsdam.de \
    --to=rose@rz.uni-potsdam.de \
    --cc=gentoo-science@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox