Blender V4.3
BLI_math_statistics.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2015 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
11#include "BLI_compiler_attrs.h"
12#include "BLI_math_inline.h"
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18#ifdef BLI_MATH_GCC_WARN_PRAGMA
19# pragma GCC diagnostic push
20# pragma GCC diagnostic ignored "-Wredundant-decls"
21#endif
22
23/* -------------------------------------------------------------------- */
39void BLI_covariance_m_vn_ex(int n,
40 const float *cos_vn,
41 int cos_vn_num,
42 const float *center,
43 bool use_sample_correction,
44 float *r_covmat);
53void BLI_covariance_m3_v3n(const float (*cos_v3)[3],
54 int cos_v3_num,
55 bool use_sample_correction,
56 float r_covmat[3][3],
57 float r_center[3]);
58
59#ifdef BLI_MATH_GCC_WARN_PRAGMA
60# pragma GCC diagnostic pop
61#endif
62
65#ifdef __cplusplus
66}
67#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.