generalize log likelihood to afunction