def Value(self, p):
if p < <NUM_LIT:0> or p > <NUM_LIT:1>:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>if p == <NUM_LIT:0>: return self.xs[<NUM_LIT:0>]<EOL>if p == <NUM_LIT:1>: return self.xs[-<NUM_LIT:1>]<EOL>index = bisect.bisect(self.ps, p)<EOL>if p == self.ps[index - <NUM_LIT:1>]:<EOL><INDENT>return self.xs[index - <NUM_LIT:1>]<EOL><DEDENT>else:<EOL><INDENT>return self.xs[index]<EOL><DEDENT>
Returns InverseCDF(p), the value that corresponds to probability p.

        Args:
            p: number in the range [0, 1]

        Returns:
            number value