Blender V5.3
BLI_math_statistics.hh
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
10
11#include "BLI_math_inline.hh"
12#include "BLI_sys_types.hh"
13
14namespace blender {
15
16#ifdef BLI_MATH_GCC_WARN_PRAGMA
17# pragma GCC diagnostic push
18# pragma GCC diagnostic ignored "-Wredundant-decls"
19#endif
20
21/* -------------------------------------------------------------------- */
24
37void BLI_covariance_m_vn_ex(int n,
38 const float *cos_vn,
39 int cos_vn_num,
40 const float *center,
41 bool use_sample_correction,
42 float *r_covmat);
51void BLI_covariance_m3_v3n(const float (*cos_v3)[3],
52 int cos_v3_num,
53 bool use_sample_correction,
54 float r_covmat[3][3],
55 float r_center[3]);
56
57#ifdef BLI_MATH_GCC_WARN_PRAGMA
58# pragma GCC diagnostic pop
59#endif
60
62
63} // namespace blender
BMesh Iterators.
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.
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.