oneapi::mkl::stats::central_moment with User-provided Mean¶
Description¶
Entry point to compute arrays of central moments up to the 4th order with mean provided by the user.
API¶
Syntax¶
Buffer API
template<method Method = method::fast, typename Type, layout ObservationsLayout>
void central_moment(sycl::queue& queue,
    sycl::buffer<Type, 1> mean,
    const dataset<ObservationsLayout, sycl::buffer<Type, 1>>& data,
    sycl::buffer<Type, 1> central_moment_2,
    sycl::buffer<Type, 1> central_moment_3 = {0},
    sycl::buffer<Type, 1> central_moment_4 = {0});
USM API
template<method Method = method::fast, typename Type, layout ObservationsLayout>
sycl::event central_moment(sycl::queue& queue,
    Type* mean,
    const dataset<ObservationsLayout, Type*>& data,
    Type* central_moment_2,
    Type* central_moment_3 = nullptr,
    Type* central_moment_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.  | 
Buffer API
Name  | 
Type  | 
Description  | 
|---|---|---|
mean  | 
  | 
  | 
USM API
Name  | 
Type  | 
Description  | 
|---|---|---|
mean  | 
  | 
Pointer to the output array of mean values provided by the user.  | 
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  | 
|---|---|---|
central_moment_2  | 
  | 
  | 
central_moment_3  | 
  | 
  | 
central_moment_4  | 
  | 
  | 
USM API
Name  | 
Type  | 
Description  | 
|---|---|---|
central_moment_2  | 
  | 
Pointer to the output array of central moments of the 2nd order.  | 
central_moment_3  | 
  | 
Pointer to the output array of central moments of the 3rd order.  | 
central_moment_4  | 
  | 
Pointer to the output array of central moments of the 4th order.  | 
event  | 
  | 
Function returns event after submitting task in   |