customFunction function

A custom function to approximate a log likelihood function