@staticmethod
def _obj_wrapper(func, x_meas, y_meas, kwargs, p):
    """
        Wrapper function that point to objective function.

        :param func: objective function.
        :param args: positional arguments to pass on to objective function
        :param kwargs: key arguments to pass on to objective function
        :param p: probe parameters used to calculate objective function
        :return: return the calculated objective function.
        """
    return func(p, x_meas, y_meas, **kwargs)
