Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: min_with_location - Function Up: mathematics - Module Previous: range_with_location - Function


max_with_location - Function



Package utility
Module mathematics


Determine location of the maximum of a set of numbers


Synopsis
max_with_location(data, max_location, mask)



Description
max_with_location not only determines the maximum value in an array, it also tells you where the maximum value is located. If the maximum value ocuurs more than once, the first location is returned.



Arguments

data   The array to search
max_location   Position of the maximum value
mask   If set, only consider locations where mask==True
    Allowed: bool array
    Default: null


Returns
max


See Also
min, max, max built-ins, range_with_location





next up previous contents index
Next: min_with_location - Function Up: mathematics - Module Previous: range_with_location - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15