octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #33935] demo function humps is not defined


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #33935] demo function humps is not defined
Date: Sat, 12 Dec 2015 22:09:19 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0

Follow-up Comment #2, bug #33935 (project octave):

saw this looking through old 'need infos'. (website sorts by type with oldest
first)

peeking at humps, it looks like a rational function which I've been playing
with recently. Used rational polynomial fit tool along with
humps([-10:.01:10]). Got a R2=1 fit with m=n=4. normalized coefficients with
Maxima and got the following:


f(x) = - (1200*x^4-2880*x^3+2036*x^2-348*x - 88) /
(200*x^4-480*x^3+406*x^2-138*x + 17)

Goodness of fit:
  SSE: 2.201e-24
  R-square: 1
  Adjusted R-square: 1
  RMSE: 3.324e-14


plot seems to overlap perfectly, too.

I remember 'way' back when using humps as a good test function with close
local maxima for peak finding, thought it may be useful to have. Since it
popped out so easily, thought I'd code it up.

1st cut m-file attached. not quite ready for a patch/submission yet. i think I
got all the use cases right.  need help/usage and tests. 

chalk it up to me procrastinating on other work by taking care of those 'high
priority' needs. ;)

(file #35722)
    _______________________________________________________

Additional Item Attachment:

File name: humps.m                        Size:0 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?33935>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]