sampledDist has been replaced with likelihoodFun