code: def _constant_cumulative_distribution(self, X):
          
          result = np.ones(X.shape)
          result[np.nonzero(X < self.constant_value)] = 0
  
          return result
docs: Cumulative distribution for the degenerate case of constant distribution.
  
          Note that the output of this method will be an array whose unique values are 0 and 1.
          More information can be found here: https://en.wikipedia.org/wiki/Degenerate_distribution
  
          Args:
              X (numpy.ndarray): Values to compute cdf to.
  
          Returns:
              numpy.ndarray: Cumulative distribution for the given values.