27 return w * f1 + (1.0 - w) * f2;
DualNumber< Real, DNDerivativeType, true > ADReal
ADReal weight(const ADReal &x) const
Computes the weight of the first function.
ADWeightedTransition(const ADReal &x_center, const ADReal &transition_width)
Constructor.
const std::vector< double > x
virtual ADReal value(const ADReal &x, const ADReal &f1, const ADReal &f2) const override
Computes the transition value.
Base class for smooth transitions between two functions of one variable.
const ADReal _x2
Right end point of transition.
const ADReal _x1
Left end point of transition.