Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

SELECTION procedure in FORTRAN

Status
Not open for further replies.

ashotk

Computer
Jul 21, 2010
4
Hi falks,

In fortran code I met the procedure SELECTION which I gues is related to Numerical Recipes (The code has such comment "C From Numerical Recipes - find obs. ranked PCT in array TEMPN:") and looks like this -

WCTF=SELECTION(PCT,N,TEMPN)
WCTF - REAL*8
PCT - INTEGER
N - INTEGER
TEMPN - array of REAL*8 (REAL*8 TEMPN(N))

Do you have any assumptions?

Thanks in advance
 
Replies continue below

Recommended for you

If it is the routine I think it is, it selects the PCT largest item in the array TEMPN. It is in chapter 8.3
 
Thanks for quick replay. As I understand this routine returns the PCT-th maximum in array. For example if I have an array {2,6,1,9} then SELECTION(2,4,array) will return 6?.

By the way, which is the name of that book (any links please).

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor