diff --git a/CHANGELOG b/CHANGELOG index f49e1af00..7d2368994 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -14,6 +14,7 @@ improved doc. - Bug-fixes and code improvements - [spatialPartitioning] Fix unwanted function hiding with DryFit::setWeightFunc (#86) - [fitting] Fix a potential bug when using multi-pass fitting (#89) + - [fitting] Fix a bug in CovarianceFit (#93) - [fitting] Remove deadcode in Basket (#86) - [ci] Fix Compiler is out of heap space error on Github (MSVC), by splitting tests (#87) diff --git a/Ponca/src/Fitting/covarianceFit.hpp b/Ponca/src/Fitting/covarianceFit.hpp index 775709a6f..aaddb9e73 100644 --- a/Ponca/src/Fitting/covarianceFit.hpp +++ b/Ponca/src/Fitting/covarianceFit.hpp @@ -23,7 +23,7 @@ CovarianceFitBase::addLocalNeighbor(Scalar w, const DataPoint &attributes) { if( Base::addLocalNeighbor(w, localQ, attributes) ) { - m_cov += localQ * localQ.transpose(); + m_cov += w * localQ * localQ.transpose(); return true; } return false; diff --git a/doc/src/ponca.mdoc b/doc/src/ponca.mdoc index f7e1d8aa9..faff972e6 100644 --- a/doc/src/ponca.mdoc +++ b/doc/src/ponca.mdoc @@ -52,7 +52,7 @@ - Nicolas Dupont, Carl Delrieu, Dorian Verge: add Wendland and Singular weight kernels, as described in \cite Alexa:2009:Hermite
- Thibault Lejemble : implementation of several fitting primitives, differential estimators, and original version of the Spatial Partitioning code
- - Jules Vidal : bug fixes
+ - Jules Vidal, Antoine Lafon : bug fixes
- Amael Marquez : KdTree API improvements
\subsection ponca_credits_subsection_grenaille Patate/Grenaille crew and contributors