TAbstractMtxVecInt.MaxMinIdx Method

procedure MaxMinIdx(out aMax, aMaxIdx, aMin, aMinIdx: integer); overload;

Calculate minimum, maximum and their indices in one procedure call.

#NameDescription
1aMax

Returns calling vector maximum value.

2aMaxIdx

Returns calling vector maximum value index.

3aMin

Returns calling vector monimum value.

4aMinIdx

Returns calling vector minimum value index.

Result: stored in self (calling object)

Indexed: procedure MaxMinIdx(out aMax, aMaxIdx, aMin, aMinIdx: integer; Index, Len: integer); overload;

Calculate minimum, maximum and their indices in one procedure call.

#NameDescription
1aMax

Returns calling vector elements [Index..Index+Len-1] maximum value.

2aMaxIdx

Returns calling vector maximum value index.

3aMin

Returns calling vector elements [Index..Index+Len-1] minimum value.

4aMinIdx

Returns calling vector minimum value index.

5Index

The starting index at which to start the search.

6Len

The number of elements to search starting from Index.

Result: stored in self (calling object)

Remarks:

An exception is raised if array borders are overrun/underrun.