[proFit-list] Finding the min or max of data

Chris Lee laserboy at fusemail.com
Wed May 8 09:07:59 CDT 2013


It depends. In a function or program, you can easily do this. From the interface, I don't think it is possible

in a program, it would look something like this

from numpy import asarray, argmax, argmin
the_rows = pf.RowRange()
the_data =  asarray(pf.GetData(the_rows, a_col, skipInvalidRows = True))
print the_data.argmin()+1, the_data.argmax()+1 #need to add one because python is 0-based

that will print the row number to the results window

Cheers
Chris

On 8 May 2013 (W: 19), at 15:54, Dave <glasspusher at outofoptions.net> wrote:

> Hi folks,
> 
> While I am anxiously awaiting the Cocoa based, Retina- ready version of pro Fit, a question:
> 
> Is there an easy way to find the local minima/ maxima of a set of data or selection of data, and report that point? I mean finding the max or min y value and reporting the x,y coördinate.
> 
> Thanks,
> 	Dave
> _______________________________________________
> proFit-list mailing list
> proFit-list at quantum-soft.com
> http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com




More information about the proFit-list mailing list