kingsley
unread,Oct 29, 2009, 10:06:25 AM10/29/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to fityk-users
Hi
I am using the extremum() function to find the mode of my fitted
peaks.
My data range is from 100 to 800, but individual peaks are far
narrower. However, to simplify my script I specify the full data range
in the arguments to extremum(%_1, 100, 800) like so.
When I have a very narrow yet intense peak at 600, the value returned
by extremum is the range start argument rather than the actual
location of the peak, unless I increase the range start argument.
here is my actual result from several tests:
=-> i extremum(%_1,160,800)
160
=-> i extremum(%_1,170,800)
170
=-> i extremum(%_1,180,800)
598.509
(For a narrow gauss peak, 560 - 630, center 599, height 2120, width
11, skew -.04)
Note that unless i specify a range start > 170, it returns the range
start value instead of the proper peak location of 598.5. All range
start arguments from 100 to 170 incorrectly return the actual range
start value itself!
Seems to be a bug????
Kingsley