(ungrouped_sigma: np.ndarray,
                           groups: np.ndarray)
return sigma
Sigma values for the groups.

    Returns sigma for the groups of parameter values in the argument
    ungrouped_metric where the group consists of no more than
    one parameter

    Parameters
    ----------
    ungrouped_sigma: np.ndarray
        Sigma values calculated without considering the groups
    groups: np.ndarray
        Array defining the distribution of groups

    Returns
    -------
    sigma: np.ndarray
        Sigma values for the groups.
Sigma values for the groups.
Sigma values for the groups .
def _compute_grouped_sigma(ungrouped_sigma: np.ndarray,
                           groups: np.ndarray) -> np.ndarray:
    """ Sigma values for the groups.

    Returns sigma for the groups of parameter values in the argument
    ungrouped_metric where the group consists of no more than
    one parameter

    Parameters
    ----------
    ungrouped_sigma: np.ndarray
        Sigma values calculated without considering the groups
    groups: np.ndarray
        Array defining the distribution of groups

    Returns
    -------
    sigma: np.ndarray
        Sigma values for the groups.
    """
    sigma_agg = _compute_grouped_metric(ungrouped_sigma, groups)

    sigma = np.zeros(groups.shape[1], dtype=float)
    np.copyto(sigma, sigma_agg, where=groups.sum(axis=0) == 1)
    np.copyto(sigma, np.NAN, where=groups.sum(axis=0) != 1)

    return sigma
def _compute_grouped_sigma ( ungrouped_sigma : np . ndarray , groups : np . ndarray ) -> np . ndarray : sigma_agg = _compute_grouped_metric ( ungrouped_sigma , groups ) sigma = np . zeros ( groups . shape [ 1 ] , dtype = float ) np . copyto ( sigma , sigma_agg , where = groups . sum ( axis = 0 ) == 1 ) np . copyto ( sigma , np . NAN , where = groups . sum ( axis = 0 ) != 1 ) return sigma