Functions

Vector Min/Max Functions

Vector min/max functions, return minimum, maximum, minimum position, and maximum position of elements of a List. More...

Functions

template<class ListType >
Real Max (ListType L)
 Maximum value of List L.
Complex Max (ComplexList L)
template<class ListType >
Integer MaxPos (ListType L)
 Index of the maximum value of List L.
template<class Type >
Real Min (Type L)
 Minimum value of list L.
Complex Min (ComplexList L)
template<class Type >
Integer MinPos (Type L)
 Index of the minimum value of list L.

Detailed Description

Vector min/max functions, return minimum, maximum, minimum position, and maximum position of elements of a List.

List can be any defined type, such as RealList, IntegerList, Rhythm, Pitch, Complex, etc.


Function Documentation

template<class ListType >
Real Max ( ListType  L ) [inline]

Maximum value of List L.

Parameters:
LList

Definition at line 104 of file Musimat.h.

References Return.

{ Return( L.max() ); }
Pitch Max ( ComplexList  L ) [inline]

Definition at line 105 of file Musimat.h.

References List< Type >::max(), and Return.

{ Return( L.max() ); }
template<class ListType >
Integer MaxPos ( ListType  L ) [inline]

Index of the maximum value of List L.

Parameters:
LList

Definition at line 113 of file Musimat.h.

References Return.

{ Return( L.maxPos() ); }
template<class Type >
Real Min ( Type  L ) [inline]

Minimum value of list L.

Parameters:
LList

Definition at line 117 of file Musimat.h.

References Return.

{ Return( L.min() ); }
Pitch Min ( ComplexList  L ) [inline]

Definition at line 118 of file Musimat.h.

References List< Type >::min(), and Return.

{ Return( L.min() ); }
template<class Type >
Integer MinPos ( Type  L ) [inline]

Index of the minimum value of list L.

Parameters:
LList

Definition at line 126 of file Musimat.h.

References Return.

{ Return( L.minPos() ); }