2 * ***** BEGIN GPL LICENSE BLOCK *****
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * The Original Code is Copyright (C) 2015 by Blender Foundation
19 * All rights reserved.
21 * The Original Code is: all of this file.
23 * ***** END GPL LICENSE BLOCK *****
26 #ifndef __BLI_MATH_STATISTICS_H__
27 #define __BLI_MATH_STATISTICS_H__
29 /** \file BLI_math_statistics.h
37 #include "BLI_compiler_attrs.h"
38 #include "BLI_math_inline.h"
40 #ifdef BLI_MATH_GCC_WARN_PRAGMA
41 # pragma GCC diagnostic push
42 # pragma GCC diagnostic ignored "-Wredundant-decls"
45 /********************************** Covariance Matrices *********************************/
47 void BLI_covariance_m_vn_ex(
48 const int n, const float *cos_vn, const int nbr_cos_v3, const float *center, const bool use_sample_correction,
50 void BLI_covariance_m3_v3n(
51 const float (*cos_v3)[3], const int nbr_cos_v3, const bool use_sample_correction,
52 float r_covmat[3][3], float r_center[3]);
55 #ifdef BLI_MATH_GCC_WARN_PRAGMA
56 # pragma GCC diagnostic pop
63 #endif /* __BLI_MATH_STATISTICS_H__ */