LogProb objective function