CubicTransition

This class is similar to WeightedTransition, except that it computes a cubic polynomial fit in the transition region instead of weighting the two functions: f(x)=Ax3+Bx2+Cx+D, f(x) = A x^3 + B x^2 + C x + D \,, where the polynomial coefficients are fitted to satisfy the properties listed for WeightedTransition, which gives 4 equations:

  • f(x1)=f1(x1)f(x_1) = f_1(x_1)

  • f(x2)=f2(x2)f(x_2) = f_2(x_2)

  • f(x1)=f1(x1)f'(x_1) = f_1'(x_1)

  • f(x2)=f2(x2)f'(x_2) = f_2'(x_2)

As noted for WeightedTransition, this transition is recommended over WeightedTransition when the transition occurs at the intersection of two functions.