nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
moments.hpp
Go to the documentation of this file.
1
3// toolboxes/stats/include/nk/stats/moments/moments.hpp
4//
5// Higher moments: skewness, kurtosis.
6
7#pragma once
8
9#include <memory_resource>
10#include <nk/value/value.hpp>
11
12namespace nk::stats {
13
16
17
30Value skewness(const Value &x, int normFlag = 1, int dim = 0,
31 std::pmr::memory_resource *mr = nullptr);
32
47Value kurtosis(const Value &x, int normFlag = 1, int dim = 0,
48 std::pmr::memory_resource *mr = nullptr);
49
50
52} // namespace nk::stats
Core MATLAB-compatible multidimensional array and scalar value type.
Definition value.hpp:61
Value skewness(const Value &x, int normFlag=1, int dim=0, std::pmr::memory_resource *mr=nullptr)
Sample skewness along dim (y = skewness(X, normFlag, dim)).
Value kurtosis(const Value &x, int normFlag=1, int dim=0, std::pmr::memory_resource *mr=nullptr)
Sample kurtosis along dim (y = kurtosis(X, normFlag, dim)).