def MaxLikeInterval(self, percentage=<NUM_LIT>):
interval = []<EOL>total = <NUM_LIT:0><EOL>t = [(prob, val) for val, prob in self.Items()]<EOL>t.sort(reverse=True)<EOL>for prob, val in t:<EOL><INDENT>interval.append(val)<EOL>total += prob<EOL>if total >= percentage / <NUM_LIT>:<EOL><INDENT>break<EOL><DEDENT><DEDENT>return interval<EOL>
Returns the maximum-likelihood credible interval.

        If percentage=90, computes a 90% CI containing the values
        with the highest likelihoods.

        percentage: float between 0 and 100

        Returns: list of values from the suite