The log of the likelihood function, basic implementation.
Assumes that the phase is the last parmameter in the parameter list