Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function Mean: Double; | Mean value. |
| └ indexed: function Mean(Index: Integer; Len: Integer): Double; | ||
| 2 | procedure Mean(out AMean: TCplx); | Same as TOpenCLMtxVec.Meanc. |
| └ indexed: procedure Mean(out AMean: TCplx; Index: Integer; Len: Integer); | ||
| 3 | procedure Mean(out AMean: Double; Index: Integer; Len: Integer); | Calculate the mean value from calling object elements [Index]..[Index+Len-1]. |
Overload 1: function Mean: Double;
Mean value.
Returns: Double
Calculate the mean value of all calling object elements. The result is a real value. An exception is raised if calling object TOpenCLBase.Complex property is true.
var a: clVector;
b: double;
begin
a.CopyFromArray(TDoubleArray.Create(1,2,3,4));
b := a.Mean; // b = 2.5
end;
Indexed: function Mean(Index: Integer; Len: Integer): Double;
Returns real mean value from calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | Integer | start index |
| 2 | Len | Integer | element count |
Returns: Double
An exception is raised if calling object TOpenCLBase.Complex property is true or array borders are overrun.
Overload 2: procedure Mean(out AMean: TCplx);
Same as TOpenCLMtxVec.Meanc.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AMean | TCplx | pre-computed mean |
Result: stored in self (calling object)
Indexed: procedure Mean(out AMean: TCplx; Index: Integer; Len: Integer);
Same as TOpenCLMtxVec.Meanc.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AMean | TCplx | pre-computed mean |
| 2 | Index | Integer | start index |
| 3 | Len | Integer | element count |
Result: stored in self (calling object)
Overload 3: procedure Mean(out AMean: Double; Index: Integer; Len: Integer);
Calculate the mean value from calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AMean | Double | pre-computed mean |
| 2 | Index | Integer | start index |
| 3 | Len | Integer | element count |
Result: stored in self (calling object)
The result AMean is a real value. An exception is raised if calling object TOpenCLBase.Complex property is true or array borders are overrun/underrun.