loss_function: Loss Function used for the Term Structure Estimation
Description
The loss function defines the objective function used for the optimisation. In case of term structure estimation
the objective function is the sum of the weighted squared price errors.