Skip to content

Commit

Permalink
Merge pull request #93 from AntoineLafon/CovarianceFit_Fix
Browse files Browse the repository at this point in the history
Fix - add missing Weight ponderation in covarience fit
  • Loading branch information
nmellado authored Jun 16, 2023
2 parents 93a0125 + 8db69b2 commit c6afa7b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion Ponca/src/Fitting/covarianceFit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ CovarianceFitBase<DataPoint, _WFunctor, T>::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;
Expand Down
2 changes: 1 addition & 1 deletion doc/src/ponca.mdoc
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
- <b> Nicolas Dupont, Carl Delrieu, Dorian Verge</b>: add Wendland and Singular weight kernels, as described in \cite Alexa:2009:Hermite<br/>
- <b> Thibault Lejemble </b>: implementation of several fitting primitives, differential estimators, and original
version of the Spatial Partitioning code<br/>
- <b> Jules Vidal </b>: bug fixes<br/>
- <b> Jules Vidal, Antoine Lafon </b>: bug fixes<br/>
- <b> Amael Marquez </b>: KdTree API improvements <br/>

\subsection ponca_credits_subsection_grenaille Patate/Grenaille crew and contributors
Expand Down

0 comments on commit c6afa7b

Please sign in to comment.