oneapi::mkl::stats::mean#
Description#
Entry point to compute the arrays of mean values.
Mathematical Notation#
Vector of mean values:
\(M(X) = \left( M_1(X), \; \dots, M_p(X) \right), \; M_i(X) = \frac{1}{W} \sum_{j=1}^n \omega_j x_{ij}\)
Where:
\(W = \sum_{j=1}^n \omega_j, \; i = 1, \dots, p\)
API#
Syntax#
Buffer API
template<method Method = method::fast, typename Type, layout ObservationsLayout>
void mean(sycl::queue& queue,
const dataset<ObservationsLayout, sycl::buffer<Type, 1>>& data,
sycl::buffer<Type, 1> mean);
USM API
template<method Method = method::fast, typename Type, layout ObservationsLayout>
sycl::event mean(sycl::queue& queue,
const dataset<ObservationsLayout, Type*>& data,
Type* mean,
const std::vector<sycl::event> &dependencies = {});
Include Files#
oneapi/mkl/stats.hpp
Template Parameters#
Name |
Description |
|---|---|
|
Computation method. The specific values are as follows: |
Input Parameters#
Name |
Type |
Description |
|---|---|---|
queue |
|
Valid |
data |
|
Dataset which is used for estimates computation. |
Optional Input Parameter for USM API
Name |
Type |
Description |
|---|---|---|
dependencies |
|
List of events to wait for before starting computation, if any. |
Output Parameters#
Buffer API
Name |
Type |
Description |
|---|---|---|
mean |
|
|
USM API
Name |
Type |
Description |
|---|---|---|
mean |
|
Pointer to the output array of mean values. |
event |
|
Function returns event after submitting task in |