Blender  V3.3
BLI_math_statistics.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2015 Blender Foundation. All rights reserved. */
3 
4 #pragma once
5 
10 #include "BLI_compiler_attrs.h"
11 #include "BLI_math_inline.h"
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 #ifdef BLI_MATH_GCC_WARN_PRAGMA
18 # pragma GCC diagnostic push
19 # pragma GCC diagnostic ignored "-Wredundant-decls"
20 #endif
21 
22 /* -------------------------------------------------------------------- */
38 void BLI_covariance_m_vn_ex(int n,
39  const float *cos_vn,
40  int cos_vn_num,
41  const float *center,
42  bool use_sample_correction,
43  float *r_covmat);
52 void BLI_covariance_m3_v3n(const float (*cos_v3)[3],
53  int cos_v3_num,
54  bool use_sample_correction,
55  float r_covmat[3][3],
56  float r_center[3]);
57 
58 #ifdef BLI_MATH_GCC_WARN_PRAGMA
59 # pragma GCC diagnostic pop
60 #endif
61 
64 #ifdef __cplusplus
65 }
66 #endif
void BLI_covariance_m_vn_ex(int n, const float *cos_vn, int cos_vn_num, const float *center, bool use_sample_correction, float *r_covmat)
Compute the covariance matrix of given set of nD coordinates.
void BLI_covariance_m3_v3n(const float(*cos_v3)[3], int cos_v3_num, bool use_sample_correction, float r_covmat[3][3], float r_center[3])
Compute the covariance matrix of given set of 3D coordinates.
NSNotificationCenter * center