Blender V5.0
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
10
11#include "BLI_math_inline.h"
12#include "BLI_sys_types.h"
13
14#ifdef BLI_MATH_GCC_WARN_PRAGMA
15# pragma GCC diagnostic push
16# pragma GCC diagnostic ignored "-Wredundant-decls"
17#endif
18
19/* -------------------------------------------------------------------- */
22
35void BLI_covariance_m_vn_ex(int n,
36 const float *cos_vn,
37 int cos_vn_num,
38 const float *center,
39 bool use_sample_correction,
40 float *r_covmat);
49void BLI_covariance_m3_v3n(const float (*cos_v3)[3],
50 int cos_v3_num,
51 bool use_sample_correction,
52 float r_covmat[3][3],
53 float r_center[3]);
54
55#ifdef BLI_MATH_GCC_WARN_PRAGMA
56# pragma GCC diagnostic pop
57#endif
58
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.