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

Dave glasspusher at outofoptions.net
Wed May 8 21:20:37 CDT 2013


Hi Chris,
	Thanks. Interesting. I should pick up Python as my next language.

Dave
On May 8, 2013, at 7:07 AM, Chris Lee <laserboy at fusemail.com> wrote:

> 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
> 
> 
> _______________________________________________
> 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