copulas/univariate/base.py
def _constant_probability_density(self, X):
        """Probability density 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 pdf.

        Returns:
            numpy.ndarray: Probability densisty for the given values
        """
        result = np.zeros(X.shape)
        result[np.nonzero(X == self.constant_value)] = 1

        return result
Probability density 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 pdf.

        Returns:
            numpy.ndarray: Probability densisty for the given values
        
Probability density 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.
Probability density 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 .
def _constant_probability_density(self, X):
        result = np.zeros(X.shape)
        result[np.nonzero(X == self.constant_value)] = 1
        return result
def _constant_probability_density ( self , X ) : result = np . zeros ( X . shape ) result [ np . nonzero ( X == self . constant_value ) ] = 1 return result
Probability density for the degenerate case of constant distribution.
Probability density for the degenerate case of constant distribution .
"""Probability density 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 pdf.

        Returns:
            numpy.ndarray: Probability densisty for the given values
        """
Probability densisty for the given values
Probability densisty for the given values
numpy.ndarray
self
X
Values to compute pdf.
Values to compute pdf .