File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
include/boost/math/distributions Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -147,8 +147,8 @@ namespace boost { namespace math {
147
147
return result;
148
148
}
149
149
BOOST_MATH_STD_USING
150
- RealType power = (location - x) / scale;
151
- return logistic_sigmoid (- power, Policy ());
150
+ RealType power = - (location - x) / scale;
151
+ return logistic_sigmoid (power, Policy ());
152
152
}
153
153
154
154
template <class RealType , class Policy >
@@ -250,8 +250,8 @@ namespace boost { namespace math {
250
250
{
251
251
return result;
252
252
}
253
- RealType power = (x - location) / scale;
254
- return logistic_sigmoid (- power, Policy ());
253
+ RealType power = - (x - location) / scale;
254
+ return logistic_sigmoid (power, Policy ());
255
255
}
256
256
257
257
template <class RealType , class Policy >
You can’t perform that action at this time.
0 commit comments