INNER CODE UNIT · Python
_compute_empirical
sdv-dev/Copulas · copulas/bivariate/__init__.py:25
def _compute_empirical(X):
"""Compute empirical distribution.
Args:
X(numpy.array): Shape (n,2); Datapoints to compute the empirical(frequentist) copula.
Return:
tuple(list):
"""
z_left = []
z_right = []
L = []
R = []
U, V = split_matrix(X)
N = len(U)
base = np.linspace(EPSILON, 1.0 - EPSILON, COMPUTE_EMPIRICAL_STEPS)