Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function Min: Double; | Minimum value. |
| └ indexed: function Min(Index: Integer; Len: Integer): Double; | ||
| 2 | procedure Min(out AMin: Double; out AIndex: Integer); | Calculate the minimum value of all calling object elements. |
| 3 | function Min(out AMin: TCplx; Index: Integer; Len: Integer): Integer; | Same as the clMatrix.Minc method. |
| 4 | procedure Min(out AMin: Double; Index: Integer; Len: Integer); | Calculate the minimum value from calling object elements [Index]..[Index+Len-1]. |
| 5 | procedure Min(out AMin: Double; out AIndex: Integer; Index: Integer; Len: Integer); | Calculate the minimum value of calling object elements [Index]..[Index+Len-1]. |
Overload 1: function Min: Double;
Minimum value.
Returns: Double - The minimum value of all calling object elements. The result is a real value.
An exception is raised if calling object clMatrix.Complex property is true.
var a: clMatrix;
b: double;
begin
a.Size(2,2, clFloat, false);
a.CopyFromArray(TDoubleArray.Create(1,2,3,4));
b := a.Min; // b = 1
end;
Indexed: function Min(Index: Integer; Len: Integer): Double;
Calculate the minimum value from calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | Integer | start index |
| 2 | Len | Integer | element count |
Returns: Double
The result is a real value. An exception is raised if calling object clMatrix.Complex property is true or array borders are overrun.
Overload 2: procedure Min(out AMin: Double; out AIndex: Integer);
Calculate the minimum value of all calling object elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AMin | Double | |
| 2 | AIndex | Integer | start index |
Result: stored in self (calling object)
The AMin parameter returns the minimum value. The AIndex parameter returns the index of minimum value. An exception is raised if calling object clMatrix.Complex property is true.
Overload 3: function Min(out AMin: TCplx; Index: Integer; Len: Integer): Integer;
Same as the clMatrix.Minc method.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AMin | TCplx | |
| 2 | Index | Integer | start index |
| 3 | Len | Integer | element count |
Returns: Int32
Overload 4: procedure Min(out AMin: Double; Index: Integer; Len: Integer);
Calculate the minimum value from calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AMin | Double | |
| 2 | Index | Integer | start index |
| 3 | Len | Integer | element count |
Result: stored in self (calling object)
The result AMin is a real value. An exception is raised if calling object clMatrix.Complex property is true or array borders are overrun.
Overload 5: procedure Min(out AMin: Double; out AIndex: Integer; Index: Integer; Len: Integer);
Calculate the minimum value of calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AMin | Double | |
| 2 | AIndex | Integer | start index |
| 3 | Index | Integer | start index |
| 4 | Len | Integer | element count |
Result: stored in self (calling object)
The AMax parameter returns the minimum value. The AIndex parameter returns the index of minimum value. An exception is raised if calling object clMatrix.Complex property is true or array borders are overrud/underrun.