oneapi::mkl::stats::central_sum#
Description#
Entry point to compute arrays of central sums up to the 4th order.
Mathematical Notation#
Vector of central sums:
\(S^k(X) = \left( S^k_1(X), \; \dots, S^k_p(X) \right), \; S^k_i(X) = \sum_{j=1}^{n} \omega_j \left( x_{ij} - S_i(X) \right)^k\)
Where:
\(S_i(X) = \sum_{j=1}^n \omega_j x_{ij}, \; i = 1, \dots, p, \; k = 2, 3, 4\)
API#
Syntax#
Buffer API
template<method Method = method::fast, typename Type, layout ObservationsLayout>
void central_sum(sycl::queue& queue,
const dataset<ObservationsLayout, sycl::buffer<Type, 1>>& data,
sycl::buffer<Type, 1> central_sum_2,
sycl::buffer<Type, 1> central_sum_3 = {0},
sycl::buffer<Type, 1> central_sum_4 = {0});
USM API
template<method Method = method::fast, typename Type, layout ObservationsLayout>
sycl::event central_sum(sycl::queue& queue,
const dataset<ObservationsLayout, Type*>& data,
Type* central_sum_2,
Type* central_sum_3 = nullptr,
Type* central_sum_4 = nullptr,
const std::vector<sycl::event> &dependencies = {});
Include Files#
oneapi/mkl/stats.hpp
Template Parameters#
|
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 Parameters 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 |
|---|---|---|
central_sum_2 |
|
|
central_sum_3 |
|
|
central_sum_4 |
|
|
USM API
Name |
Type |
Description |
|---|---|---|
central_sum_2 |
|
Pointer to the output array of central sums of the 2nd order (optional). |
central_sum_3 |
|
Pointer to the output array of central sums of the 3rd order (optional). |
central_sum_4 |
|
Pointer to the output array of central sums of the 4th order (optional). |
event |
|
Function returns event after submitting task in |