>  Docs Center  >  Libraries  >  JHU/APL/S1R  >  EXTREMES

EXTREMES

EXTREMES

Name


      EXTREMES

Purpose


      Find all the local extremes of a 1-d array.

Category


Calling Sequence


      ind = extremes(y, flag)

Inputs


      y = 1-d array to search. in
      flag = min/max flag: -1 for min, 1 for max. in

Keyword Parameters


Outputs


      ind = indices of local extremes (-1 if none). out

Common Blocks


Notes


      Notes: if the curve has flat topped regions local
        maxes are returned at both the start and end of
        the regions. Similarly for flat bottomed regions
        local mins are returned at both the start and end of
        the regions.

Modification History


      R. Sterner, 22 Sep, 1991
      R. Sterner, 2010 Jun 09 --- Converted arrays from () to [].
  Copyright (C) 1991, Johns Hopkins University/Applied Physics Laboratory
  This software may be used, copied, or redistributed as long as it is not
  sold and this copyright notice is reproduced on each copy made. This
  routine is provided as is without any express or implied warranties
  whatsoever. Other limitations apply as described in the file disclaimer.txt.



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us