Text this: Optimization of spline parameters in approximation of multivalued functions