void MaxMinIdx(ref Int32 aMax, ref Int32 aMaxIdx, ref Int32 aMin, ref Int32 aMinIdx)
Calculate minimum, maximum and their indices in one procedure call.
| # | Name | Description |
|---|---|---|
| 1 | aMax | Returns calling vector maximum value. |
| 2 | aMaxIdx | Returns calling vector maximum value index. |
| 3 | aMin | Returns calling vector monimum value. |
| 4 | aMinIdx | Returns calling vector minimum value index. |
Result: stored in self (calling object)
Indexed: void MaxMinIdx(ref Int32 aMax, ref Int32 aMaxIdx, ref Int32 aMin, ref Int32 aMinIdx, Int32 Index, Int32 Len)
Calculate minimum, maximum and their indices in one procedure call.
| # | Name | Description |
|---|---|---|
| 1 | aMax | Returns calling vector elements [Index..Index+Len-1] maximum value. |
| 2 | aMaxIdx | Returns calling vector maximum value index. |
| 3 | aMin | Returns calling vector elements [Index..Index+Len-1] minimum value. |
| 4 | aMinIdx | Returns calling vector minimum value index. |
| 5 | Index | The starting index at which to start the search. |
| 6 | Len | 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.