×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

SELECTION procedure in FORTRAN

SELECTION procedure in FORTRAN

SELECTION procedure in FORTRAN

(OP)
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

RE: SELECTION procedure in FORTRAN

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

RE: SELECTION procedure in FORTRAN

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login



News


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close