MLEstimator function

Function to compute maximum likelihood estimates