Revert "fix derivative"

This reverts commit 42b795c769.
release/4.3a0
Jose Luis Blanco Claraco 2022-04-22 12:37:48 +02:00
parent 42b795c769
commit a9ba1da877
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; const double e2 = distance*distance;
if (e2 > c_) if (e2 > c_)
{ {
const double w = c_/(c_ + e2); const double w = 2.0*c_/(c_ + e2);
return 2.0*w*w; return w*w;
} }
return 1.0; return 1.0;