def _log_prob_with_logsf_and_logcdf(self, y):
<EOL>logsf_y = self.log_survival_function(y)<EOL>logsf_y_minus_1 = self.log_survival_function(y - <NUM_LIT:1>)<EOL>logcdf_y = self.log_cdf(y)<EOL>logcdf_y_minus_1 = self.log_cdf(y - <NUM_LIT:1>)<EOL>big = tf.where(logsf_y < logcdf_y, logsf_y_minus_1, logcdf_y)<EOL>small = tf.where(logsf_y < logcdf_y, logsf_y, logcdf_y_minus_1)<EOL>return _logsum_expbig_minus_expsmall(big, small)<EOL>
Compute log_prob(y) using log survival_function and cdf together.