Optimize 'calc_log_likelihood' function for single output system.