TTK
Loading...
Searching...
No Matches
Statistics.h
Go to the documentation of this file.
1
7
8#pragma once
9
10#include <Debug.h>
11#include <array>
12
13namespace ttk {
14
15 namespace Statistics {
16
22 template <typename T>
23 T mean(const T *v, const int &dimension = 3);
24
28 template <typename T>
29 T mean(const std::vector<T> &v);
30
36 template <typename T>
37 T var(const T *v, const int &dimension = 3);
38
42 template <typename T>
43 T var(const std::vector<T> &v);
44
53 template <typename T>
54 T cov(const T *v1,
55 const T *v2,
56 const int &dimension1 = 3,
57 const int &dimension2 = 3);
58
63 template <typename T>
64 T cov(const std::vector<T> &v1, const std::vector<T> &v2);
65
74 template <typename T>
75 T corr(const T *v1,
76 const T *v2,
77 const int &dimension1 = 3,
78 const int &dimension2 = 3);
79
84 template <typename T>
85 T corr(const std::vector<T> &v1, const std::vector<T> &v2);
86
87 } // namespace Statistics
88} // namespace ttk
T mean(const T *v, const int &dimension=3)
Definition Statistics.cpp:9
T cov(const T *v1, const T *v2, const int &dimension1=3, const int &dimension2=3)
T var(const T *v, const int &dimension=3)
T corr(const T *v1, const T *v2, const int &dimension1=3, const int &dimension2=3)
The Topology ToolKit.