21 namespace perception {
24 template <
typename Dtype>
26 return static_cast<Dtype
>(1.0) /
27 static_cast<Dtype
>(1.0 + exp(static_cast<double>(-x)));
29 template <
typename Dtype>
30 inline Dtype
gaussian(Dtype x, Dtype mu, Dtype sigma) {
31 return static_cast<Dtype
>(
32 std::exp(-(x - mu) * (x - mu) / (2 * sigma * sigma)));
34 template <
typename Dtype>
Dtype sqr(Dtype x)
Definition: math_functions.h:35
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Dtype sigmoid(Dtype x)
Definition: math_functions.h:25
Dtype gaussian(Dtype x, Dtype mu, Dtype sigma)
Definition: math_functions.h:30