Question: 2. Print all the local peaks where the peak elevation is greater or equal to 98480 with a value for n (index radius) of 11.

 2. Print all the local peaks where the peak elevation is

2. Print all the local peaks where the peak elevation is greater or equal to 98480 with a value for n (index radius) of 11. A local peak occurs when a value is higher than all the values within n rows and columns inclusive in all directions of the data set. Local peaks in the first n rows, first n columns, last n rows and last n columns can be excluded from the analysis. The example below is a 10 x 10 data set where the index radius (n) is set to 2 and where we are interested in all local peaks between 90 and 99 inclusive: 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 21 33 44 12 59 32 77 66 44 11 12 11 10 18 19 21 61 23 95 14 10 44 99 12 131 10 55 44 41 65 96 44 55 12 10 671 23 32 65 43 23 33 12 33 10 65 87 66 53 91 32 12 77 98 73 43 33 12 42 23 37 62 27 43 61 11 12 91 33 12 76 19 43 57 64 77 81 73 43 29 18 21 37 98 19 71 44 83 11 42 12 42 77 75 73 88 13 22 52 28 There are 2 local peaks which occur are 99(2,2) and 98(5,3). Note that although 95, 96 and 98 are examples of local peaks they occur in the excluded area (first and last 2 rows, first and last 2 columns). Also note that the two values of 91 are not considered local peaks as they are the same height and are too close together (within the exclusion radius) - they cancel each other out (must be greater not equal

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!