Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Search results for query: *

  • Users: Ahn210
  • Content: Threads
  • Order by date
  1. Ahn210

    Fortran_Nested_Arrays?

    Hello, Can anyone teach me how to declare an allocatable array with another array (TYPE) nested inside? Or suggest better way to store data below? I wish to store data into an array like... Automaker (i) % Month (j) % SALES(j) Automaker (i) % Month (j) % COST(j) ex) Automaker (bmw) %...
  2. Ahn210

    Percentile on Fortran

    Hello- Can someone teach me how to get percentile value given a sorted array data? Data 2.56 2.44 1.2 0.99 0.76 0.36 0.35 0.32 0.22 0.11 0.09 0.031 I wish to find 70th and 30th percentile value (0.921 // 0.25 got from excel)
  3. Ahn210

    reading missing values in array?

    Hello, Can someone help me reading arrays with missing values? Following is data that I got in text file: A B C D E F 85337 20120531 23.2457 20.08000 148210.48 -0.017605 85337 20120629 23.2457 21.95000...
  4. Ahn210

    Follow up Q on sorting. How to quick sort?

    Hello, Thanks for answering my prev. question on simple sorting of 2 column data which were: ID nums 12 0.111 58 1.52 . . . . . . 101 0.5 10 2.89 I declared 2 single array ID(:) and nums(:) DO J = 1, 9 DO K = J+1, 10 IF(nums(J) > nums(K)) THEN temp = nums(K) temp2 = id(k)...
  5. Ahn210

    how to sort 2 columns together?

    Hello, I'm a newbie to fortran and need some help on sorting 2 columns of data (related) to be sorted on 1 column. For instance, if my input text file has following: ID nums 12 0.111 58 1.52 101 0.5 10 2.89 I declared 2 single array ID(:) and nums(:) and applied selection sort...

Part and Inventory Search

Back
Top