fix derivative

Signed-off-by: Jose Luis Blanco Claraco <joseluisblancoc@gmail.com>
release/4.3a0
Jose Luis Blanco Claraco 2022-04-22 01:02:03 +02:00
parent 017e3cdb17
commit 42b795c769
No known key found for this signature in database
GPG Key ID: D443304FBD70A641
1 changed files with 2 additions and 2 deletions

View File

@ -350,8 +350,8 @@ double DCS::weight(double distance) const {
const double e2 = distance*distance;
if (e2 > c_)
{
const double w = 2.0*c_/(c_ + e2);
return w*w;
const double w = c_/(c_ + e2);
return 2.0*w*w;
}
return 1.0;