fix derivative
Signed-off-by: Jose Luis Blanco Claraco <joseluisblancoc@gmail.com>release/4.3a0
parent
017e3cdb17
commit
42b795c769
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue