Skip to content

Commit

Permalink
v1.4.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaBelyaev committed Feb 12, 2020
1 parent ebaa78a commit b6bb997
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion ReleaseNotes/v1.4.7.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@

1. fix `Ostap::Math::Positive::updateBernstein`. The bug was introduced in 1.4.7.0. Thanks to Tatiana Ovsiannikova for reporting the problem.


8 changes: 4 additions & 4 deletions source/src/Bernstein1D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,11 @@ bool Ostap::Math::Positive::updateBernstein ()
const long double c1 = - r * ri * alpha ;
const long double c2 = ri * ri * alpha ;
//
const bool updated1 = m_bernstein.setPar ( 0 , c0 ) ;
const bool updated2 = m_bernstein.setPar ( 1 , c1 + 2 * beta ) ;
const bool updated3 = m_bernstein.setPar ( 2 , c2 ) ;
const bool updated1 = m_bernstein.setPar ( 0 , c0 ) ;
const bool updated2 = m_bernstein.setPar ( 1 , c1 + 0.5 * beta ) ;
const bool updated3 = m_bernstein.setPar ( 2 , c2 ) ;
//
m_bernstein *= ( norm / ( c0 + c1 + c2 + 2 * beta ) ) ;
m_bernstein *= ( norm / ( c0 + c1 + c2 + 0.5 * beta ) ) ;
//
return updated1 || updated2 || updated3 ;
}
Expand Down

0 comments on commit b6bb997

Please sign in to comment.