Overload List
| # | Signature | Description |
|---|---|---|
| 1 | void MaxMin(ref Double AMax, ref Double AMin) | Maximum and minimum value in a single pass. |
| └ indexed: void MaxMin(ref Double AMax, ref Double AMin, Int32 Index, Int32 Len) | ||
| 2 | void MaxMin(ref Double AMax, ref Int32 MaxIdx, ref Double AMin, ref Int32 MinIdx) | Calculates the maximum and minimum value of all calling object elements. |
| └ indexed: void MaxMin(ref Double AMax, ref Int32 MaxIdx, ref Double AMin, ref Int32 MinIdx, Int32 Index, Int32 Len) |
Overload 1: void MaxMin(ref Double AMax, ref Double AMin)
Maximum and minimum value in a single pass.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AMax | Double (ref) | output |
| 2 | AMin | Double (ref) | output |
Result: stored in self (calling object)
Calculates the maximum and minimum value of all calling object elements in a single pass. Maximum value is stored in AMax parameter, minimum value is stored in AMin parameter. Use this method if you require minimum AND maximum value.
Indexed: void MaxMin(ref Double AMax, ref Double AMin, Int32 Index, Int32 Len)
Calculates the maximum and minimum value of calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AMax | Double (ref) | output |
| 2 | AMin | Double (ref) | output |
| 3 | Index | Int32 | start index |
| 4 | Len | Int32 | element count |
Result: stored in self (calling object)
Maximum value is stored in AMax parameter, minimum value is stored in AMin parameter. An exception is raised if calling object Dew.Math.TMtxVec.Complex property is true or array borders are overrud/underrun.
Overload 2: void MaxMin(ref Double AMax, ref Int32 MaxIdx, ref Double AMin, ref Int32 MinIdx)
Calculates the maximum and minimum value of all calling object elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AMax | Double (ref) | output |
| 2 | MaxIdx | Int32 (ref) | output |
| 3 | AMin | Double (ref) | output |
| 4 | MinIdx | Int32 (ref) | output |
Result: stored in self (calling object)
Maximum value is returned in AMax parameter, minimum value in AMin parameter. The MaxIdx parameter returns the index of maximum value. The MinIdx parameter returns the index of minimum value. An exception is raised if calling object Dew.Math.TMtxVec.Complex property is true.
Indexed: void MaxMin(ref Double AMax, ref Int32 MaxIdx, ref Double AMin, ref Int32 MinIdx, Int32 Index, Int32 Len)
Calculates the maximum and minimum value of calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AMax | Double (ref) | output |
| 2 | MaxIdx | Int32 (ref) | output |
| 3 | AMin | Double (ref) | output |
| 4 | MinIdx | Int32 (ref) | output |
| 5 | Index | Int32 | start index |
| 6 | Len | Int32 | element count |
Result: stored in self (calling object)
Maximum value is returned in AMax parameter, minimum value in AMin parameter. The MaxIdx parameter returns the index of maximum value. The MinIdx parameter returns the index of minimum value. An exception is raised if calling object Dew.Math.TMtxVec.Complex property is true or if array borders are overrun/underrun.