If the fit data has only one value, hence the std is 0, the current code has a workaround to avoid crashing later on when trying to crash: https://github.com/DAI-Lab/Copulas/blob/f27d86d50db8e8e94c43bf6c0f17f650bffdd6ce/copulas/univariate/gaussian.py#L45 Wouldn't it be better to capture and implement this exceptional situation by just making all samples constant, equal to the mean?
Activity