IMP  2.3.0
The Integrative Modeling Platform
IMP.em2d.argminmax Namespace Reference

Utility functions to extract min/max from the inputs. More...

Detailed Description

Utility functions to extract min/max from the inputs.

Functions

def argmax
 Argmax function: Returns the pair (max_value,max_index), where max_index is the index of the maximum value. More...
 
def argmin
 Argmin function: Returns the pair (min_value,min_index), where min_index is the index of the minimum value. More...
 
def keymax
 return the key of the dictionary that has the maximum value More...
 
def keymin
 return the key of the dictionary that has the minimum value More...
 

Function Documentation

def IMP.em2d.argminmax.argmax (   sequence)

Argmax function: Returns the pair (max_value,max_index), where max_index is the index of the maximum value.

Definition at line 31 of file argminmax.py.

def IMP.em2d.argminmax.argmin (   sequence)

Argmin function: Returns the pair (min_value,min_index), where min_index is the index of the minimum value.

Definition at line 6 of file argminmax.py.

def IMP.em2d.argminmax.keymax (   dictionary)

return the key of the dictionary that has the maximum value

Definition at line 44 of file argminmax.py.

def IMP.em2d.argminmax.keymin (   dictionary)

return the key of the dictionary that has the minimum value

Definition at line 19 of file argminmax.py.